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
Chad Leigh -- Shire.Net LLC
chad at shire.net
Wed Nov 9 06:39:23 UTC 2011
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.
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.
%
% /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
More information about the freebsd-java
mailing list