Troubleshooting
Problem
This document defines the JVM environment variables that can be used to customize the location of JVM dump files for the IBM Technology for Java VM.
Environment
IBM i; IBM Technology for Java VM
Resolving The Problem
By default, JVM dump files will be created in the current user directory of the job or process (user.dir). If you would like to customize this location, you can set the following JVM environment variables at the System-wide (*SYS) or Job (*Job) scopes:
NOTE: If the environment variable is set at the job scope, the ADDENVVAR command must be executed in the same job the JVM will be created in. Otherwise, the environment variable will not be set correctly for the JVM process.
IBM_JAVACOREDIR
Specify an alternative location for Javadump files; for example, on IBM i
Job Scope:
ADDENVVAR ENVVAR(IBM_JAVACOREDIR) VALUE('/tmp/javadumpfiles') LEVEL(*JOB)
System-wide:
ADDENVVAR ENVVAR(IBM_JAVACOREDIR) VALUE('/tmp/javadumpfiles') LEVEL(*SYS)
IBM_COREDIR
Specify an alternative location for system dumps and snap trace. For example:
Job Scope:
ADDENVVAR ENVVAR(IBM_COREDIR) VALUE('/tmp/javadumpfiles') LEVEL(*JOB)
System-wide Scope:
ADDENVVAR ENVVAR(IBM_COREDIR) VALUE('/tmp/javadumpfiles') LEVEL(*SYS)
IBM_HEAPDUMPDIR
Specify an alternative location for Heapdump files. For example:
Job Scope:
ADDENVVAR ENVVAR(IBM_HEAPDUMPDIR) VALUE('/tmp/javadumpfiles') LEVEL(*JOB)
System-wide Scope:
ADDENVVAR ENVVAR(IBM_HEAPDUMPDIR) VALUE('/tmp/javadumpfiles') LEVEL(*SYS)
You can also set these variables for a WebSphere Application Server JVM process. The following screen shot shows how they can be added to the server process definition.

Other JVM environment settings are documented here:
http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=/com.ibm.java.doc.user.aix32.60/collection-welcome.html
Historical Number
539462974
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1012681