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
| Job | User | Number | Type | Status | Subsystem |
| ADMIN4 | QWEBADMIN | 630009 | BCI | THDW | QHTTPSVR |
| QJVAEXEC | QTCP | 629675 | BCI | JVAW | QSYSWRK |
| QYPSJSVR | QYPSJSVR | 629614 | BCH | SIGW | QSYSWRK |
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).
Historical Number
439137896
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1014577