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.


3 Responses to “Profile your Eclipse Plugins with SAP Memory Analyzer part 2”

  1. Markus Kohler Says:

    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. Manuel Says:

    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. Eclipse Profiling / Memory Analyzer Part 3 « Manuel’s Eclipse blog Says:

    [...] by the two posts about “Profile Your Eclipse Plugins with SAP Memory Analyzer” here and [...]

Leave a Reply