Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 28264 invoked from network); 14 Dec 2009 00:39:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Dec 2009 00:39:02 -0000 Received: (qmail 85711 invoked by uid 500); 14 Dec 2009 00:38:59 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 85607 invoked by uid 500); 14 Dec 2009 00:38:59 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 85597 invoked by uid 99); 14 Dec 2009 00:38:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 00:38:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bogdan.maryniuk@gmail.com designates 209.85.211.183 as permitted sender) Received: from [209.85.211.183] (HELO mail-yw0-f183.google.com) (209.85.211.183) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 00:38:51 +0000 Received: by ywh13 with SMTP id 13so3274516ywh.29 for ; Sun, 13 Dec 2009 16:38:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=mtlSA5PGbdEaqxNDoeMaqgDEdereJPBvKhKQCnFi3DY=; b=Up+y2SGmI52u5skqufr1I78na9IxQ43wJMKBuHW/UfXMZVAetUiIGIE/GIp0p87HJi OMiethOvRp6OnJwFxtUQ+yOc3CeLd0FZVqv2rEa4rC0OqoCxGGHdKMba/GW62PRD6wN9 CSwBNrCrvQzfD4RcnkJDFxRnPaaTPpAjHPb1I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DYZgi+X4VjxzL3L7QDSl7Mkwx5V8IVAlZ/mn2iHzY2DscTppuaGuGmNPnNxAH43ppu hN0iqpzUQk494olJK946Ply7GwNGENQfHOxZWU7G9q5GTP6F9jL65szL2btx0bBvgajW irR193lj7R9lO08As907yUUmsr5CMzW+wlngU= MIME-Version: 1.0 Received: by 10.101.7.35 with SMTP id k35mr5825748ani.179.1260751110125; Sun, 13 Dec 2009 16:38:30 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Dec 2009 09:38:30 +0900 Message-ID: Subject: Re: Works on laptop with 2GB, but cannnot allocate memory on VPS with 3.5 GB. From: BM To: common-user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Dec 13, 2009 at 7:58 PM, pavel kolodin wrote: > -------------------- > Failed with 2 such nodes: > 1) VPS, 64bit, 3.5GB RAM > 2) VPS, 64bit, 2.5GB RAM > (all - gentoo linux, hardware - 1 server, 16 Xeons, 16GB) Oh, Gentoo still alive? Strange... :-) > Many errors, all because of deficit of memory: > * "DrWho" (whoami available, but can't start because of memory deficit) > * "java.io.IOException: Cannot run program "chmod": java.io.IOException: > error=12, Cannot allocate memory" > * and other... VPS != your laptop. C++ stuff is not the thing, because you're trying to launch an external process out of JVM, as I can see from your traceback. To me it smells to me like VPS configuration suffers with incorrect swap configuration. Check your overcommit_memory flag in the kernel. It happens as if overcommit_memory is turned off, then Java is gonna locks its VM memory into non-swap area. So when system is trying to spawn a process (chmod in your case) that is not really belongs to VM, process is gonna get launched more in swap, which in your case might be very small one. HTH. P.S. Or go my way ant get an OpenSolaris instead. :-) -- Kind regards, BM Things, that are stupid at the beginning, rarely ends up wisely.