How do you open large heap heaps using VisualVM?

I created a bunch of heaps using VisualVM. The resulting file .hprofis about 6 GB.

When I try to upload a file in VisualVM, it is stuck at 50%. Despite the fact that the computer that I use does not consume additional resources. The CPU is quiet, only about half of the available memory is used, and no IO is reported.

jvisualvm: stuck on the "Load dump heap" screen asks a similar question, but the only answer involves creating a file .hprofthrough VisualVM (which I already did).

Are there any special settings that I need to use to open a dump of a heap of this size?

+4
source share
1 answer

I suggest you open it using MATEclipse Memory Analyzer , its powerful tool for analyzing such heap dump files, alongside its general way of analyzing heap files.

You also need to increase MAT memory to open this large file, you can do it as follows:

  • Open the file config.inilocated in the MAT_HOME directory.
  • Change the value -Xmxto more than 6GB.

The above link also contains a tutorial on how to use MAT.

If it MATdoes not open the heap file, the file may be corrupted.

+4
source

Source: https://habr.com/ru/post/1536496/


All Articles