Dump Java Virtual Machine (DMPJVM)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Dump Java Virtual Machine (DMPJVM) command dumps information about the Java Virtual Machine (JVM) for a specified job. The information is dumped using printer file QSYSPRT. The dump includes formatted information about the classpath, garbage collection, and threads associated with the JVM.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
JOB Job name Qualified job name Optional, Positional 1
Qualifier 1: Job name Name
Qualifier 2: User Name
Qualifier 3: Number 000000-999999
STACKFRAME Stack frames 0000-9999, 10, *ALL Optional
DUPJOBOPT Duplicate job option *SELECT, *MSG Optional
Top

Job name (JOB)

Specifies the name of the job where the JVM is running. If no job number is given, all of the jobs currently in the system are searched for the simple job name. The job name entered must be a job in which a JVM is currently running.

*SRVJOB
Information about the JVM in the job currently being serviced will be dumped. If no job is currently being serviced, then a job identifier is required.
job-name
Specify the name of the JVM job.
user-name
Specify the name of the user of the JVM job.
job-number
Specify the number of the JVM job.
Top

Stack frames (STACKFRAME)

Specifies the maximum number of stack frames to be processed for each thread. This value must be greater than zero and cannot be greater than 100. If there are more than the specified number of frames on a thread's stack, the more recent frames on the stack are processed and '...' is used to indicate that not all of the stack frames were processed.

10
A maximum of ten stack frames will be processed for each thread.
*ALL
All stack frames will be processed for each thread. If a thread has more than 100 stack frames, only the first 100 frames will be processed.
1-100
Specify the maximum number of stack frames that will be processed for each thread.
Top

Duplicate job option (DUPJOBOPT)

Specifies the action taken when duplicate jobs are found by this command.

*SELECT
The selection display is shown when duplicate jobs are found during an interactive session. Otherwise, an escape message is issued.
*MSG
An escape message is issued when duplicate jobs are found.
Top

Examples

DMPJVM JOB(099246/FRED/QJVACMDSRV)

This command will dump information for the Java Virtual Machine for the job with job name QJVACMDSRV, user name FRED, and job number 099246.

Top

Error messages

*ESCAPE Messages

JVAB601
DMPJVM failed with reason code &1.
JVAB602
Job parameter required.
JVAB603
Unable to open print file.
JVAB60A
Job not found.
CPF1938
Command is not allowed while serviced job is not active.
CPF3524
More than one job with specified name found.
CPF3536
Job completed and cannot be serviced.
CPF3938
Already servicing another job.
CPF9824
Not authorized to command &1 in library &2.
Top