An other way to dump the JVM memory heap is to use javax.management and 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.
January 17, 2008 at 9:33 am |
Hi Manuel,
Are you aware of our wiki side at https://www.sdn.sap.com/irj/sdn/wiki?path=/display/Java/Java+Memory+Analysis& ?
There you will find a link to
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageId=33456
which documents the possible ways to get a heap dump.
Are you aware that the Memory Analyzer is going to be open sourced ?
Check http://www.eclipse.org/proposals/memory-analyzer/ for the details.
Your plugin could be a first contribution from outside SAP
Regards,
Markus
January 17, 2008 at 1:56 pm |
Hi Markus,
Thanks for your useful links.
I will follow the SAP Memory Analyzer eclipse proposal evolution and will be proud to contribute my little plugin to SAP
Manuel
February 5, 2008 at 8:02 am |
[...] by the two posts about “Profile Your Eclipse Plugins with SAP Memory Analyzer” here and [...]