An other way to dump the JVM memory heap is to use
com.sun.management APIs . You can find here the way to do this.
Using this solution I wrote a simple Eclipse plugin just adding a tool bar button allowing me to dump the memory of the current running Eclipse’s JVM in a choosen file.
I can now profile my Eclipse’s plugins without living my favorite open extensible IDE for anything and nothing in particular.