Can I compare hprof/jmap dumps with VisualVM?
Asked Answered
W

2

7

VisualVM crashes when I try to profile our application with it, but if I could load the jmap memory dumps I've done from our application into VisualVM, I could probably get the answers I need without having to attach VisualVM to our app while it is running.

So, is there a way to do this?

Waldgrave answered 14/8, 2009 at 18:26 Comment(0)
C
10

Open VisualVM, click File -> Load.. and pick your jmap file.

If it is not loaded, I guess there is a problem with your file.

Calamondin answered 31/8, 2009 at 9:11 Comment(1)
I think this should be the accepter answer since the user specifically asked about visualvm. A bit embarrassed to admit that I didn't try this option, thought it should be loaded through "Add VM Coredump..." option. Thanks!Scoreboard
I
8

MAT ( http://www.eclipse.org/mat/ ) is useful for comparing jmap/hprof files. Try the dominator tree if you have a memory leak.

Inesinescapable answered 7/9, 2009 at 9:56 Comment(1)
Absolutely, yes. MAT is the tool for memory dump analysis on Java.Devindevina

© 2022 - 2024 — McMap. All rights reserved.