IBM Support

Finding All Active Java Virtual Machines (JVMs)

Troubleshooting


Problem

This document will show you how to determine which Java™ virtual machines are active on your system.

Environment

IBM i

Resolving The Problem

Sometimes you need to know which Java Virtual Machines are running on your system (for example, when installing PTFs that require all of the JVMs to be ended (message CPD35EA) or when changing a Java parameter that requires a restart of the virtual machine). The following instructions will determine which virtual machines are currently running on your system.

If you are running IBM i 5.4 or later, type the following command to locate all active JVM jobs:

DSPJVMJOB

At IBM i 7.1 and later, you can also use the command, WRKJVMJOB, to display all active JVM jobs.

Press the Enter key. The output to the screen follows:

 Display Java Virtual Machine Jobs            
Java Virtual Machine Jobs:   17         Allow New JVM:   Yes        

JobUserNumberTypeStatusSubsystem
ADMIN4QWEBADMIN630009BCITHDWQHTTPSVR
QJVAEXECQTCP629675BCIJVAWQSYSWRK
QYPSJSVRQYPSJSVR629614BCHSIGWQSYSWRK


Starting and Stopping i5/OS JVMs

The IBM i OS uses Java for a few of its applications. The following are a few common JVMs that you might find active on your system:

Job QYPSJSVR
To stop this job, type ENDTCPSVR *MGTC.
To start this job, type STRTCPSVR *MGTC.

Job QSRVMON
To stop this job, type WRKSYSVAL QSFWERRLOG, press the Enter key and change it to *NOLOG.
To start this job, type WRKSYSVAL QSFWERRLOG, press the Enter key and change it to *LOG.

Job QJVACMDSRV with user ID QIBMHELP
To stop this job, type ENDTCPSVR *IBMHELP.
To start this job, type STRTCPSVR *IBMHELP.

Jobs ADMIN, ADMIN1, ADMIN2, ADMIN3, ADMIN4, or ADMIN5 in the subsystem QHTTPSVR
To stop these jobs, type ENDTCPSVR *HTTP HTTPSVR(*ADMIN).
To start these jobs, type STRTCPSVR *HTTP HTTPSVR(*ADMIN).

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Historical Number

439137896

Document Information

Modified date:
18 December 2019

UID

nas8N1014577