[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] java machines with > 2gb




On Sep 12, 2008, at 8:26 AM, Matthew Farrellee wrote:

A quick read of the work around[1], a few runs of java -Xmx... NOTHING,
and it seems this isn't entirely Condor's fault.

$ java -Xmx4g NOTHING
Invalid maximum heap size: -Xmx4g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

vs

$ java -Xmx1g NOTHING
Exception in thread "main" java.lang.NoClassDefFoundError: NOTHING
...

On my 32 bit system, the JVM is not able to handle the 4GB max heap size
I've requested, but it can handle 1GB.

The maximum heap size for Java is slightly under 2 GB for 32-bit VMs and slightly under 4 GB for 64-bit VMs. The exact limit depends on the OS and a few other factors, so you may have to experiment to find the largest "safe" value.

--

David Brodbeck
System Administrator, Linguistics
University of Washington