Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2011 23:39:22 -0700
From:      "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
To:        freebsd-java@freebsd.org
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
Message-ID:  <8134A98B-1CEA-4279-8312-69F1D2974645@shire.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8134A98B-1CEA-4279-8312-69F1D2974645>