Geertjan's Blog

  • April 8, 2008

New & Updated Samples for VisualVM Plugin Developers

Geertjan Wielenga
Product Manager
There was a big repackaging over the past weeks, for the VisualVM APIs. However, two examples are available, right now, that you can look at when migrating some plugin that you may have created previously. If you check out the sources from https://visualvm.dev.java.net/, you will find a 'samples' folder, with two samples, as you can see here:

Those are two standalone plugins for VisualVM. Just open them in the IDE, set the latest VisualVM as your platform (you probably need to create your own version of VisualVM from the sources you've checked out, by choosing "Build ZIP Distribution" on the VisualVM application in the IDE and then unzipping the generated ZIP that you'll find in the 'dist' folder). Then everything should be fine, no error marks and so on, as you can see here:

The "Hello World" sample does the same as before, except that it is now updated to the latest APIs:

The second sample, providing the "JVM capabilities" subtab that you see in the bottom right of the screenshot below, shows how a plugin can integrate into an existing tab using the new API and save/restore its data to/from Application Snapshot:

So, if you're interested in integrating your tools into VisualVM, the above are the two samples you should look at. Both will find their way into a tutorial soon.

Join the discussion

Comments ( 6 )
  • Maxx Wednesday, April 9, 2008

    Hi. Thank you very much for any tutorial and sample here, but I would need some little help, if it's possible (may be even with my English :) My testing of modules for netbeans platform is very slow, and as begginer a must always check my work by reloading in target platform and so ... At moment of this




    Generating information for Auto Update...


    system stay for almost one minute "in doing nothing" ... I have 2GB RAM and normal procesor. Is there way to make it faster? Thanks for any reply. Bye

  • Maxx Wednesday, April 9, 2008

    My NetBeans installation - 6.0.1 (NetBeans Platform Dev (Build 200801291616))

  • Geertjan Wednesday, April 9, 2008

    I'm sorry, Maxx, don't know the answer. I advise that you write to dev@openide.netbeans.org with this question.

  • Aljoscha Rittner Friday, July 11, 2008

    Yes, the Ant-Task "Generating information for Auto Update" is very slow. I hope this will be addressed in future releases.

    It would be very useful to separate some distribution tasks from the run/build target.

    best regards,


  • Louis du Pisani Thursday, December 18, 2008

    Is it not possible to disable auto-update completely? I'm writing a netbeans module, and everytime I try to debug it, it get's stuck here. On Netbeans 6.1 it was acceptable, and when I do a normal compile and run it's fine, but on Netbeans 6.5 in debug mode it's very slow.

  • Hermien Pellissier Friday, November 13, 2009

    There is indeed a way to disable the auto-update completely. It is performed by the 'netbeans' target in the <NetBeans platform folder>/harness/common.xml ant script. The task is called 'genlist'. If you comment this out, the "Generating Information for Auto Update" step will not be performed.

    In my blog post at http://www.kitt.co.za/technews/?p=36 I described how I found out how to disable build step.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.