For Tomcat, advanced customization is performed by appending parameters to the CATALINA_OPTS
variable, for example:
In .sh
: CATALINA_OPTS="${CATALINA_OPTS} -Dcom.sun.management.jmxremote=true"
.
In .bat
: SET CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote=true
.
Parameter | Description |
---|---|
|
By appending The dump file's path is given in the second line. |
| The first line enables the GC (JVM Garbage Collector) log. The second line indicates where you want to save the log file. |
|
By appending those parameters to This tutorial describes how to connect jconsole to a Java application. |
|
This line activates the JCR Statistics tool which is used for performance analysis and tuning. |
|
These 2 variables take effect only if you are deploying Crash into eXo Platform. Crash is a useful tool which provides a shell to work on the JCR repository. By default, you can connect to the shell at telnet port 5000 and ssh port 2000. |
For JBoss, similar variables can be customized by appending JAVA_OPTS
, for example:
JAVA_OPTS="$JAVA_OPTS -Dcrash.telnet.port=12345 -Dcrash.ssh.port=54321"