Documentation for JIRA 4.0. Documentation for other versions of JIRA is available too.

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

  • No labels