Tool or tricks to analyze offline Java heap dumps (.hprof)

user331465 picture user331465 · Dec 3, 2010 · Viewed 57.6k times · Source

Are there any tools that allow offline analysis (including summary/sorting/sifting) of an .hprof file? Or can you run VisualVM, hat etc in batch mode?

I'm interested in something that can take an input .hprof file, crunch it and generate reports.

I assume you would need to pass in a bunch of options to configure the report, so if you know any helpful tips, please weigh in.

Preferably scriptable so I could run a bunch at once.

Answer

user85155 picture user85155 · Dec 3, 2010

Eclipse Memory Analyzer does everything you need.