aabf7966f6
- Support staging. Reported by: exp-run (PR190511)
23 lines
686 B
Text
23 lines
686 B
Text
|
|
--------------------------------------------------------------------------------
|
|
ADVANCED USAGE
|
|
|
|
If you need to pass special options to Java, please set the
|
|
%%APP_NAME%%_flags option in /etc/rc.conf, see examples below:
|
|
|
|
# Prevent Java from opening an X11 display
|
|
|
|
%%APP_NAME%%_flags="-Djava.awt.headless=true"
|
|
|
|
# Increase memory limit of the Java virtual machine
|
|
|
|
%%APP_NAME%%_flags="-Xms32m -Xmx256m"
|
|
|
|
# Run Java with remote debugging turned on on port 8000
|
|
|
|
%%APP_NAME%%_flags="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
|
|
|
|
To specify the java version to use, please use %%APP_NAME%%_java_version:
|
|
|
|
%%APP_NAME%%_java_version="1.6"
|
|
|