From owner-freebsd-questions@FreeBSD.ORG Sun Apr 2 19:36:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84CEF16A400 for ; Sun, 2 Apr 2006 19:36:43 +0000 (UTC) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27A0D43D90 for ; Sun, 2 Apr 2006 19:36:16 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.4/8.13.4) with ESMTP id k32Jp6SD066877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Apr 2006 15:51:12 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-questions@freebsd.org Date: Sun, 2 Apr 2006 15:36:03 -0400 User-Agent: KMail/1.9.1 References: <0B538C86-FFCD-4AE4-A3A4-D5A2990AFEAA@veldt.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart49785775.dQddqBjGc4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604021536.12424.mistry.7@osu.edu> X-Spam-Status: No, score=-5.7 required=5.0 tests=ALL_TRUSTED,BAYES_40, MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88/1367/Sun Apr 2 06:40:41 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: Andrew Pantyukhin , "james g." Subject: Re: jdk15 on 6.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 19:36:43 -0000 --nextPart49785775.dQddqBjGc4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 02 April 2006 14:36, james g. wrote: > On Apr 2, 2006, at 11:41 AM, Andrew Pantyukhin wrote: > > On 4/2/06, james g. wrote: > >> FreeBSD Land: > >> > >> I've seen this question asked on this very list, and once or > >> twice on the web, but have yet to find a solution. > >> > >> I'm attempting to compile jdk15 on an older machine, and at > >> first attempted it on a 4.11 install. The failures there > >> encouraged me to finally upgrade the machine to 6.0. > >> > >> So now, I have a fully patched, fresh 6.0 installation. The > >> machine has 128MB physical ram, and I doubled the default swap > >> space. When I continued to run into memory errors while > >> attempting to compile the jdk, I added an additional swap file > >> of 512MB. Even with all this additional swap space, I'm getting > >> the following compilation error every time: > >> > >> `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/ > >>tmp/ bsd_i486_compiler2/jvmg' > >> gmake[3]: Entering directory > >> `/usr/ports/java/jdk15/work/control/ > >> build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg' > >> Compiling ../generated/adfiles/ad_i486.cpp > >> virtual memory exhausted: Cannot allocate memory > >> gmake[3]: *** [ad_i486.o] Error 1 > >> gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/control/ > >> build/ > >> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg' > >> gmake[2]: *** [the_vm] Error 2 > >> gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/control/ > >> build/ > >> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg' > >> gmake[1]: *** [jvmg] Error 2 > >> gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/control/ > >> build/ > >> bsd-i586/hotspot-i586/tmp' > >> gmake: *** [jvmg] Error 2 > >> *** Error code 2 > >> > >> Stop in /usr/ports/java/jdk15. > >> > >> > >> Does jdk15 really require more swapspace? I don't making the > >> additional swap file larger, but pushing 1GB of swap already is > >> leading me to believe there is another cause. > >> > >> Any help is greatly appreciated, as I'd really like to get jdk15 > >> installed and running on this specific machine, despite it's > >> age. > >> > >> Cheers, > >> James > > > > AFAICT yes, it is possible that 1Gb (try 2Gb to be sure) swap > > will solve it. I can start trying to imagine how long it would > > take to compile jdk15, though. And even if you do succeed, an > > average java application can take about 100Mb of RAM > > right from the start. So you should really choose between a > > newer box and a sensible programming language. > > Thanks for the tip. I upped the additional swapfile size to 2GB and > tried again, with the same results. > > Granted I understand that expecting so much from this little > machine is really pushing it, it will eventually just be running a > small java- based server, that unfortunately requires jdk15. I > wouldn't ever choose it on purpose. > > With a total swap size of roughly 2.5GB still generating failures, > is this a lost cause, or should I be looking for additional > solutions? You could always just to do a "make package" on another machine with=20 6.0 and then just pkg_add on your older system. =2D-=20 Anish Mistry --nextPart49785775.dQddqBjGc4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEMCesxqA5ziudZT0RAmgIAJwO78E9MG9m+GRKL2M0vSMBIoxJswCfdEW3 Hv0m0U7+1JAUkfd0HlEfTSU= =qycK -----END PGP SIGNATURE----- --nextPart49785775.dQddqBjGc4--