javaeclipseeclipse-plugineclipse-memory-analyzer

Internal error occured in parsing hprof file in eclipse


enter image description here

Using MemoryAnalyzer(eclipse plugin) for checking memory. I can able to generate hprof file , but not able to open in eclipse. Getting following internal error.


Solution

  • The memory analyzer itself ran out of memory when opening the hprof file.

    From the FAQ:

    Well, analyzing big heap dumps can also require more heap space. Give it some more memory (possible by running on a 64-bit machine):

    MemoryAnalyzer.exe -vmargs -Xmx4g -XX:-UseGCOverheadLimit
    

    Alternatively, edit the MemoryAnalyzer.ini to contain:

    -vmargs
    -Xmx2g
    -XX:-UseGCOverheadLimit
    

    ...

    If you are running the Memory Analyzer inside your Eclipse SDK, you need to edit the eclipse.ini file.