From owner-freebsd-java@FreeBSD.ORG Wed Nov 9 06:39:23 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A62C31065672 for ; Wed, 9 Nov 2011 06:39:23 +0000 (UTC) (envelope-from chad@shire.net) Received: from mail.shire.net (mail.shire.net [209.41.94.250]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF4C8FC15 for ; Wed, 9 Nov 2011 06:39:23 +0000 (UTC) Received: from c-76-27-96-201.hsd1.ut.comcast.net ([76.27.96.201] helo=[192.168.99.216]) by mail.shire.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.51) id 1RO1oh-000AnB-4B for freebsd-java@freebsd.org; Tue, 08 Nov 2011 23:39:23 -0700 From: "Chad Leigh -- Shire.Net LLC" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 8 Nov 2011 23:39:22 -0700 Message-Id: <8134A98B-1CEA-4279-8312-69F1D2974645@shire.net> To: freebsd-java@freebsd.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) X-SA-Exim-Connect-IP: 76.27.96.201 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on mail.shire.net); SAEximRunCond expanded to false Subject: diablo 1.5 and 1.6 won't run without -client (-server fails unless set -Xmx) with Could not reserve enough space for object heap X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 06:39:23 -0000 Hi The system is FreeBSD 6.1 (the machine cannot be upgraded to a new OS = but may be replaced in a few months) I have installed both the Diablo JDK 1.5 and 1.6 for FreeBSD 6 on this = machine. =20 Both fail when you invoke java % /usr/public/diablo-jdk1.5.0/jre/bin/java -server -version Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. %=20 % /usr/public/diablo-jdk1.6.0/jre/bin/java -server -version Error occurred during initialization of VM Could not reserve enough space for object heap java in free(): error: junk pointer, too high to make sense Abort (core dumped) Both default to -server but I have a javavm_opts and javavmwrapper set = with -client so I specified -server to force it If I do a -client on both, they work % /usr/public/diablo-jdk1.5.0/jre/bin/java -client -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build = diablo-1.5.0-b01) Java HotSpot(TM) Client VM (build diablo-1.5.0_07-b01, mixed mode) % % /usr/public/diablo-jdk1.6.0/jre/bin/java -client -version java version "1.6.0_07" Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02) Diablo Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode) % Additionally, if I limit the max heap size they will run. for 1.5 it is = just north of 650m somewhere and for 1.6 just north of 750m % /usr/public/diablo-jdk1.5.0/jre/bin/java -server -Xmx650m -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build = diablo-1.5.0-b01) Java HotSpot(TM) Server VM (build diablo-1.5.0_07-b01, mixed mode) % % /usr/public/diablo-jdk1.6.0/jre/bin/java -server -Xmx750m -version java version "1.6.0_07" Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02) Diablo Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode) % I need to figure out how to get these to run. I am trying to build = OpenJDK6 and it requires a working jdk of some sort. The port accesses = the jdk directly so things like javavm_opts.conf does not do anything = for you and I have not figured out where in the port to massage the = direct invocation either. If there is a work around or fix for this, I would appreciate it. Thanks Chad