'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?
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.
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.