From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 20:54:25 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 5141F16A4CE for ; Fri, 8 Apr 2005 20:54:25 +0000 (GMT) Received: from web50104.mail.yahoo.com (web50104.mail.yahoo.com [206.190.38.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 93F8A43D1F for ; Fri, 8 Apr 2005 20:54:24 +0000 (GMT) (envelope-from protoplasm72@yahoo.com) Received: (qmail 65210 invoked by uid 60001); 8 Apr 2005 20:54:24 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=OIuSW/W7TRILVO+enyslfnKjYCvehj0B4cwgDBfBzlRkQu7zq3w6Y/HLH6eWgYBvDr7CyZKU33znoBRHor4oXSfyyHoOOyc7Ef3OYJCVsjdJQSPsVzn9OR9GH4aLx/nQhGulISsKNDcGsecumMv3ObVGztfEX5NnR84GzzZamb8= ; Message-ID: <20050408205424.65208.qmail@web50104.mail.yahoo.com> Received: from [24.14.35.195] by web50104.mail.yahoo.com via HTTP; Fri, 08 Apr 2005 13:54:23 PDT Date: Fri, 8 Apr 2005 13:54:23 -0700 (PDT) From: Joe To: freebsd-java@freebsd.org In-Reply-To: <20050408162618.GA28278@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Reply-To: protoplasm72@yahoo.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 20:54:25 -0000 I didn't think of ulimit but this is what everything is set at: cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 524288 stack size (kbytes, -s) 65536 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 478 open files (-n) 957 virtual mem size (kbytes, -v) unlimited sbsize (bytes, -b) unlimited The data seg size seems low but I can't increase it. Everything else should be fine. -- Joe --- Greg Lewis wrote: > On Thu, Apr 07, 2005 at 09:48:13PM -0700, Joe wrote: > > 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 > > You can control the memory usage with Java, but the problem occurs > while > compiling a C++ file, i.e. this error is coming from gcc. I've no > idea > what it thinks its running into, but you may want to look at any > limits > your account has in terms of memory usage and the like (see ulimit). > > -- > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : > http://www.eyesbeyond.com > Information Technology FreeBSD : glewis@FreeBSD.org > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to > "freebsd-java-unsubscribe@freebsd.org" > __________________________________ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest