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

feature request:relationship of objects on Java Heap #29

Open
ismlsmile opened this issue Oct 11, 2017 · 6 comments
Open

feature request:relationship of objects on Java Heap #29

ismlsmile opened this issue Oct 11, 2017 · 6 comments

Comments

@ismlsmile
Copy link

The reference relationship of objects on Java Heap is needed to debug memory leak

@aragozin
Copy link
Owner

Could you elaborate your request? Is it about heap dump parser library?

@ismlsmile
Copy link
Author

The feature is something like Eclipse Memory Analyzer(https://www.eclipse.org/mat/about/screenshots.php).
The hh(or jmap -histo)is just like this feature in Eclipse MAT:
https://www.eclipse.org/mat/about/histogram.png

memory leak is not easy to debug according this picuture. But feature "Dominator Tree" and "Path to GC Roots" could help much to do this work:
https://www.eclipse.org/mat/about/dominator_tree.png
https://www.eclipse.org/mat/about/path_2_gc_roots.png

Eclipse MAT is offline, so sometimes it is not very convenient. And JProfiler has similar feautre and it is online, but it is commercial and GUI interface.
So a online analyzer, CUI interface and open source implementation is very great.

@geekpete
Copy link

+1 for a CLI tool
ability to do both offline and online would be awesome.

@aragozin
Copy link
Owner

I got the idea.

I working on CLI analyzer for heap dump files (offline version).

Concerning online, JProfiler probably exploits JVMTI to make it work. JVMTI would require non trivial C++ coding which I would like to avoid for number of reasons. I have few ideas how similar functionality can be implemented in pure Java, but I can promise to start work on this anytime soon.

@ismlsmile
Copy link
Author

You are a great man !

@aragozin
Copy link
Owner

Oops. There was a typo, it should be "I can not promise to start work on this anytime soon". I'm sorry to disappoint you.
But do not loose hope :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants