Skip to content
Advertisement

Tag: heap-dump

How to extract a HashMap from a Java heap dump

I have a Java heap dump generated using jmap. This contains a HashMap which I need to extract into a text format (CSV would be fine). The HashMap is fairly large so I need a scripted solution. Using JVisualVM I can find the HashMap. However, there doesn’t seem to be a way to export its data. After some experimentation I

Advertisement