문제

I am analysing a heap dump created by jmap.

YourKit has a "Reachability scope" which shows objects distributed according to their reachability scope, i.e. on how/whether they are reachable from GC roots
http://www.yourkit.com/docs/95/help/reachability.jsp

I am interested in seeing the "Objects unreachable from GC roots but not yet collected".

Does JProfiler have such a view?

For that matter, is there anyway to get this using jhat, VisualVM or IBM MAT?

도움이 되었습니까?

해결책

Currently not, but I've added this for 8.1, there will be an inspection "Unreachable objects" in the heap walker.

다른 팁

I am not sure about inspection, but to see unreachable objects in a heap dump, check the "Customize Analysis" in the file selection dialog. Then uncheck "Perform full GC" in the analysis options.

I still don't know how to look at the set of unreachable objects, but they will be there in the full set of objects.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top