[Iplant-api-dev] cannot set java heap size on lonestar; fatal error; JRE_HOME typo bug

Damian Gessler dgessler at iplantcollaborative.org
Tue Dec 10 15:21:53 MST 2013


Hi,

On TACC lonestar, given:

login2$ module java64
login2$ which java
/share1/apps/teragrid/jdk64/jdk1.7.0_45/bin/java


When I try to run 'java' (whether I use -Xms, -Xmx memory settings or 
not), it always returns a fatal heap alloc error, even if just checking 
the version; e.g.:

login2$ java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Also, inspecting my environ shows:

JAVA_BINDIR=/share1/apps/teragrid/jdk64/jdk1.7.0_45/bin
JAVA_HOME=/share1/apps/teragrid/jdk64/jdk1.7.0_45
JAVA_ROOT=/share1/apps/teragrid/jdk64/jdk1.7.0_45
JDK_HOME=/share1/apps/teragrid/jdk64/jdk1.7.0_45
JRE_HOME=/share1/apps/teragrid/jdk64/jdk1.7.0_45/rje

Notice the incorrect value for JRE_HOME; that is a typo (from the module 
load process). Correct value is: /share1/apps/teragrid/jdk64/jdk1.7.0_45/jre

Is there some other way that I should be invoking Java, or is a module 
fix needed?

Thanks,
Damian.


More information about the Iplant-api-dev mailing list