The preferred method of setting JVM options (including system properties and JVM flags) is via the SO_JAVA_OPTS environment variable. For instance:
SO_JAVA_OPTS
export SO_JAVA_OPTS="$SO_JAVA_OPTS -Djava.io.tmpdir=/path/to/temp/dir" ./bin/startup
When using the RPM or Debian packages, SO_JAVA_OPTS can be specified in the system configuration file.
Last updated 2 years ago