Java JRE: Setting default heap size

Posted by AndiDog on Super User See other posts from Super User or by AndiDog
Published on 2011-10-19T20:56:57Z Indexed on 2011/11/27 1:53 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

I'm having trouble with Java on a virtual server, it always gives me the following error:

# java
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

I first solved this by using the CACAO virtual machine (of OpenJDK, by putting it first in jvm.cfg), but then I run into problems with my web application (Play! framework based, gives me nasty LinkageErrors). So I cannot use that VM. Instead I'd like to just use the normal server VM and set -Xmx128M by default. How can I do that?

Related: this question

© Super User or respective owner

Related posts about ubuntu-10.04

Related posts about java