SET_JVM procedure
The SET_JVM procedure can be used to manage specific JVM jobs.
This actions provided by this Db2® for i procedure can also be accomplished interactively using the Work with JVM Jobs (WRKJVMJOB) command.
Authorization: None required.
The schema is QSYS2.
- job_name
- A character or graphic string expression that identifies the qualified job name of the job to change.
- action
- A character or graphic string expression that specifies that action
to perform. Supported actions are:
- GC_ENABLE_VERBOSE
- Enable verbose garbage collection detail.
- GC_DISABLE_VERBOSE
- Disable verbose garbage collection detail.
- GENERATE_HEAP_DUMP
- Generates information about the JVM's heap. Generates a dump of all the heap space allocations which have not yet been freed.
- GENERATE_SYSTEM_DUMP
- Generates system detail for the JVM. Generates a binary format raw memory image of the job that was running when the dump was initiated.
- GENERATE_JAVA_DUMP
- Generates Java™ detail for the JVM. Generates multiple files that contain diagnostic information for the JVM and the Java applications running within the JVM.
Example
- Change a specific web admin JVM to provide verbose garbage collection
details:
CALL QSYS2.SET_JVM('121376/QWEBADMIN/ADMIN4','GC_ENABLE_VERBOSE') ;