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?

skiphoppy
  • 97,646
  • 72
  • 174
  • 218

2 Answers2

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.

John Smithers
  • 1,519
  • 12
  • 18
  • 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! – Amitay Dobo May 08 '11 at 12:00
8

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

leonm
  • 6,454
  • 30
  • 38