java jvm params - ghdrako/doc_snipets GitHub Wiki

_JAVA_OPTIONS

You can use _JAVA_OPTIONS to pass options to any JVM process started on your system.

For example,

set _JAVA_OPTIONS=-Dsun.java2d.noddraw=true

When a JVM starts, it parses the value of _JAVA_OPTIONS as if the parameters were at the command line of java.

set JAVA_OPTS="-Xms128m -Xmx256m"  
# in bash: 
export _JAVA_OPTIONS="-Xmx1g"


set _JAVA_OPTIONS=-Xmx1g
export JAVA_TOOL_OPTIONS=-Xmx512m

export JAVA_TOOL_OPTIONS="-Xms2G -Xmx2G"
java -Xms2G -Xmx2G -jar jannovar-cli-0.36.jar [...]