-
Notifications
You must be signed in to change notification settings - Fork 775
Description
I always ran jstack / jmap / jstat for OpenJDK in order get some diagnostic information. And I'd like to have similar useful utilities for OpenJ9. I know I can configure -Xdump or use Diagnostic MBean to get a threaddump or heapdump, but it is not convenient for me.
jstack, jmap and other openjdk tools use Attach API to ask VM for a specific operation. So to make these tools support OpenJ9 I want to extend Attach API implementation.
I want to add commands in jcl/src/java.base/share/classes/com/ibm/tools/attach/target/Command.java.
After that, I will implement these commands in
jcl/src/java.base/share/classes/com/ibm/tools/attach/target/Attachment.java.
To get java dump / heap dump I will call jcl/src/openj9.jvm/share/classes/com/ibm/jvm/Dump.java.
May be there will be more commands