You are here:
» Java Could Not Reserve Enough Space For Object Heap?
Java Could not reserve enough space for object heap?
This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.
'm have installed java sdk 1.5 on a linux CentOS server. If I run java, I get this error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
How do I solve it?

1 year 35 weeks ago
Tags:
Use this on your linux shell or add this to your .bashrc file:
export _JAVA_OPTIONS="-Xms20m -Xmx64m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewSize=10m -XX:MaxNewSize=10m"
Great! It worked.
Post Comment