How to set Java VM settings globally on Debian system?
when running java -version 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.
This is avoidable by using -Xmx64m, so java -Xmx64m -version works fine.
But how can I set the VM argument -Xmx64m globally everytime a program
runs the JVM?
E.g. when trying to install Gerrit which makes use of the keytool, it will
crash due to exceeded memory space and in this case I can't set the VM
arguments "manually".
No comments:
Post a Comment