Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate debugging tools for OpenJ9 #2074

Open
adleong opened this issue Jul 17, 2018 · 3 comments
Open

Investigate debugging tools for OpenJ9 #2074

adleong opened this issue Jul 17, 2018 · 3 comments

Comments

@adleong
Copy link
Member

adleong commented Jul 17, 2018

Linkerd can be run on the OpenJ9 JVM. What tools are available for debugging issues when running on OpenJ9?

Does OpenJ9 export metrics or diagnostic data?
What existing JDK tools work with OpenJ9? jmap? jconsole? Can you attach a java debugger to it? How do you profile it? Java flight recorder?
How do you get a heap dump? How do you analyze it?
How do you monitor and debug GC issues? Does it emit gc logs in the same format?

@adleong
Copy link
Member Author

adleong commented Jul 18, 2018

@adleong
Copy link
Member Author

adleong commented Jul 23, 2018

Adding the -Xdump:heap:events=user command line option allows a heapdump and javacore files to be created when a SIGQUIT signal is sent to the JVM. This can be triggered by running kill -3 1.

The javacore contains detailed information about the current state of the JVM including a thread dump. It can be analyzed with JCA: https://www.ibm.com/developerworks/community/groups/service/html/communitystart?communityUuid=2245aa39-fa5c-4475-b891-14c205f7333c

The heapdump is in PHD format and cannot be analyzed by Hotspot heap analyzer tools. Instead, it can be inspected using HA: https://www.ibm.com/developerworks/community/groups/service/html/communitystart?communityUuid=4544bafe-c7a2-455f-9d43-eb866ea60091

@adleong
Copy link
Member Author

adleong commented Jul 23, 2018

Eclipse MAT can be made to understand PHD heap dumps by adding the DTFJ plugin:

  1. In MAT, go to help -> Install new software
  2. Add a site: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/runtimes/tools/dtfj/
  3. Select "Diagnostic Tool Framework for Java" and install it

@adleong adleong added this to In progress in Linkerd Kanban Jul 24, 2018
@adleong adleong self-assigned this Jul 25, 2018
@dadjeibaah dadjeibaah removed this from In progress in Linkerd Kanban Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant