[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 16:28:31 MST 2013


Roger that; checked and verified; thank you.

Damian.


On 12/10/13 4:16 PM, Rion Dooley wrote:
> It’s a known memory issues between 32 and 64 bit versions. Just specify
> the memory limit directly. Anything under 6000m should be fine.
>
> login1$ java -Xmx5099m -version
> java version "1.7.0_45"
> Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
> Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
> login1$
> login1$
> login1$ java -Xmx6000m -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.
> --
> Rion
>
>
>
>
> On Dec 10, 2013, at 4:21 PM, Damian Gessler
> <dgessler at iplantcollaborative.org
> <mailto:dgessler at iplantcollaborative.org>> wrote:
>
>> 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.
>> _______________________________________________
>> Iplant-api-dev Mailing List: Iplant-api-dev at iplantcollaborative.org
>> <mailto:Iplant-api-dev at iplantcollaborative.org>
>> List Info and Archives:
>> http://mail.iplantcollaborative.org/mailman/listinfo/iplant-api-dev
>> One-click Unsubscribe:
>> http://mail.iplantcollaborative.org/mailman/options/iplant-api-dev/dooley%40tacc.utexas.edu?unsub=1&unsubconfirm=1
>>
>


More information about the Iplant-api-dev mailing list