Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OpenJ9 Attach API Diagnostic extension #2543

@d0k1

Description

@d0k1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions