How do I set Java\'s min and max heap size through environment variables?
I know that the heap sizes can be set when launching java, but I would like to have this ad
If you want any java process, not just ant or Tomcat, to pick up options like -Xmx use the environment variable _JAVA_OPTIONS.
java
-Xmx
_JAVA_OPTIONS
In bash: export _JAVA_OPTIONS="-Xmx1g"
export _JAVA_OPTIONS="-Xmx1g"