Friday, November 9, 2012

Out of Memory while Opening Heap Dump in Eclipse Memory Analyzer

I have a 2GB heap dump that I need to analyze using Eclipse Memory Analyzer (MAT). When I attempt to open the file, I get "An internal error occurred during: Parsing heap dump from ... Java Heap Space"

An out of memory error has occurred.

When Eclipse launcher starts the JVM , it passes all arguments that are passed after -vmargs to the JVM. If Eclipse launcher starts as:
eclipse -vmargs -Xmx512m
Then when -Xmx512m is passed to the JVM. I started Ecplise as:
eclipse -vmargs -Xmx768m
And memory problem disappeared.

Better way to pass parameters is add them to eclipse.ini file.

1 comment:

  1. Buy and sell camsill titanium - TITanium Art - TheTitha
    Use our camsill titanium titan metal for home decor and titanium cerakote decor decoration. titanium vs platinum Choose from a variety of colors, textures, and styles to create titanium teeth k9 your babyliss pro titanium straightener own unique

    ReplyDelete