Profile your Eclipse Plugins with SAP Memory Analyzer part 2


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.


					
Advertisements
This entry was posted in Uncategorized by Manuel. Bookmark the permalink.

3 thoughts on “Profile your Eclipse Plugins with SAP Memory Analyzer part 2

  1. 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

  2. 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

  3. Pingback: Eclipse Profiling / Memory Analyzer Part 3 « Manuel’s Eclipse blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s