From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 08:23:22 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37ACD16A4CE for ; Fri, 8 Apr 2005 08:23:22 +0000 (GMT) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 725B343D46 for ; Fri, 8 Apr 2005 08:23:20 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j388NITf056348; Fri, 8 Apr 2005 11:23:18 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.12.11/8.12.11) with ESMTP id j388NCM8045580; Fri, 8 Apr 2005 11:23:14 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.9.3]); Fri, 08 Apr 2005 11:23:03 +0300 Message-ID: <42563F62.9080009@ebs.gr> Date: Fri, 08 Apr 2005 11:22:58 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: protoplasm72@yahoo.com References: <20050408044814.37928.qmail@web50106.mail.yahoo.com> In-Reply-To: <20050408044814.37928.qmail@web50106.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: can't compile jdk on machine with limited ram X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 08:23:22 -0000 Joe wrote: > Hope this is the right place for this question. > > I'm trying to compile the sun jdk14 port but I'm getting out of memory > errors. This is an old machine with only 64mb of ram but I have a > whole 10gb drive as my swap space. When I get this error, the process > size in memory is only around 100mb (it goes up to 120mb at other times > and is fine). I've tried killing every process that is not essential > to free up mem but it still dies. So my question is, has anyone > compiled the jdk on a machine with 64mb or less? and are there options > I can set to reduce the memory needed while compiling? If it is > important, I'm using FreeBSD 5.3-RELEASE. Thanks. > > > This is the error message: > > Compiling > /usr/ports/java/jdk14/work/hotspot/src/share/vm/opto/graphKit.cpp > virtual memory exhausted: Cannot allocate memory > gmake[3]: *** [graphKit.o] Error 1 > gmake[3]: Leaving directory > `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > gmake[2]: *** [the_vm] Error 2 > gmake[2]: Leaving directory > `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product' > gmake[1]: *** [product] Error 2 > gmake[1]: Leaving directory > `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' > gmake: *** [product] Error 2 > *** Error code 2 Have you tried adding more swap? Cheers, Panagiotis