- For Semeru Java, replace
$JAVA_HOME with the path to
Java, and $PID with the process ID in (if running under a
Windows Service, use a technique to run
the command as the SYSTEM user):
$JAVA_HOME/bin/jcmd $PID GC.run
- For IBM Java >= 8.0.6.25 that is a JDK (e.g. tWAS 9.0.5.7 and
above and 8.5.5.20 and above), replace
$JAVA_HOME with the
path to Java, and $PID with the process ID in the following
command (if running under a Windows Service, use a technique to run
the command as the SYSTEM user):
$JAVA_HOME/bin/java -Xbootclasspath/a:$JAVA_HOME/lib/tools.jar openj9.tools.attach.diagnostics.tools.Jcmd $PID GC.run
- For example:
$ /opt/IBM/WebSphere/AppServer/java/8.0/bin/java -Xbootclasspath/a:/opt/IBM/WebSphere/AppServer/java/8.0/lib/tools.jar openj9.tools.attach.diagnostics.tools.Jcmd 658 GC.run
Command succeeded
Previous Section (Sizing OpenJ9 Native Memory) |
Next Section (Class Histogram Recipe) |
Back to Table of Contents