Download NetBeans!

20080408 Tuesday April 08, 2008

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

Apr 08 2008, 11:15:00 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/new_updated_samples_for_visualvm
Comments:

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

...
verify-class-linkage:
netbeans:
Generating information for Auto Update...
reload:

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 07:39 AM PDT #

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

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

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

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

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed