[gridengine users] Java out of memory errors with gridengine on Ubuntu
Peter van Heusden
pvh at sanbi.ac.za
Mon Jul 9 19:12:46 UTC 2012
Thanks for the replies I got off list.
Since the problem seems to come from default heap limits set by Java, my
solution has been to set an alias java='java -Xmx256m' cluster-wide. My
experimentation has revealed that Java honours the last -Xmx option, so
users can set their own -Xmx without any danger.
On 07/09/2012 04:41 PM, Peter van Heusden wrote:
> Hi there
> I'm using gridengine 6.2u5-4 on Ubuntu 12.04. I've set my cluster to
> have h_vmem as a consumable with a default of 4G (the compute nodes in
> my cluster have at least 64G of RAM each). I'm getting a really strange
> problem running java though. My jdk is openJDK 7, (package
> 7~u3-2.1.1~pre1-1ubuntu3). Even a Hello World app complains:
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> If I run java directly on the compute node, it all works fine. If I
> manually specify a heap size (e.g. -Xmx128m), it works fine. I suspect,
> therefore, that the problem comes from the interaction between
> gridengine and java.
> Does anyone have any idea what could be causing this problem?
> users mailing list
> users at gridengine.org
More information about the users