New & Updated Samples for VisualVM Plugin Developers

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


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

Posted by Maxx on April 09, 2008 at 12:39 AM PDT #

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

Posted by Maxx on April 09, 2008 at 12:42 AM PDT #

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

Posted by Geertjan on April 09, 2008 at 01:59 AM PDT #

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,

Posted by Aljoscha Rittner on July 10, 2008 at 05:08 PM PDT #

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.

Posted by Louis du Pisani on December 18, 2008 at 03:12 PM PST #

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 I described how I found out how to disable build step.

Posted by Hermien Pellissier on November 13, 2009 at 12:48 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« April 2015