Interactive querying of java heap dumps in headless (terminal only) machine

243 Views Asked by At

I need to investigate a potential memory leak in a java application.

specifically: I have an object type that is contained in a map. this data is reread every now and then, and the map is replaced with the new one. However, it appears that some of the old objects aren't always released, even after forcing gc externally.

I started using MAT with the predefined reports (leak suspects, etc.) but I need to further dig in.

Using the GUI version of mat is impractical, as the machine is a remote linux server (I tried MAT with X11 and it wasn't responsive, and the dumps are to large to download)

I'm looking for a method to further analyze the heap dump using command line tools.

There are several related questions in SO and other sites - but I didn't find anything beyond the options I tried (using predefined reports)

0

There are 0 best solutions below