From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 16:26: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 060CE16A4CE for ; Fri, 8 Apr 2005 16:26:21 +0000 (GMT) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03BDB43D55 for ; Fri, 8 Apr 2005 16:26:21 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id j38GQJHC028348; Fri, 8 Apr 2005 10:26:19 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id j38GQILI028347; Fri, 8 Apr 2005 10:26:18 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 8 Apr 2005 10:26:18 -0600 From: Greg Lewis To: Joe Message-ID: <20050408162618.GA28278@misty.eyesbeyond.com> References: <20050408044814.37928.qmail@web50106.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050408044814.37928.qmail@web50106.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i 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 16:26:22 -0000 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