This page last changed on Jun 14, 2009 by rosie@atlassian.com.

Here is a list of app servers, and how to set the parameter for each:

AppServer Startup script Variable to edit Example
Orion n/a n/a java -Xrunyjpagent:onexit=memory,dir=/path/to/write/snapshots -jar orion.jar -userThreads
Tomcat  (and JIRA Standalone)
bin/setenv.sh, bin/setenv.bat or as a Windows Service JAVA_OPTS set JAVA_OPTS=-Xrunyjpagent:onexit=memory,dir=/path/to/write/snapshots (Windows), or export JAVA_OPTS=-Xrunyjpagent:onexit=memory,dir=/path/to/write/snapshots (Unix)
Weblogic $BEA_HOME/domain/<domain>/startWebLogic.sh JAVA_OPTIONS export JAVA_OPTIONS="$JAVA_OPTIONS -Xrunyjpagent:onexit=memory,dir=/path/to/write/snapshots"
JBoss 3.2.x bin/run.sh JAVA_OPTS export JAVA_OPTS=-Xrunyjpagent:onexit=memory,dir=/path/to/write/snapshots
Resin 3.0.x bin/httpd.sh n/a
Start with httpd.sh -J-Xrunyjpagent:onexit=memory,dir=/path/to/write/snapshots
Document generated by Confluence on Oct 06, 2009 00:26