tags:

views:

191

answers:

1

I have an application where I want to be able to provide my own icon and descriptive text for jvisualvm. (I do not want to configure jvisualvm, just provide better metadata from my application)

The best would be at runtime since we have distinct behaviour determined at runtime, which would be nice to have reflected in the label/icon. Makes it easier to 1) locate ourselves, but also 2) for endusers to locate in a support situation.

I did search for this earlier, but did not locate this easily. Is it buried in the JMX-stuff?

Suggestions? I have full control over the application in question.

+1  A: 

You need to create a new ApplicationType. Have a look here for how to do it

http://blogs.sun.com/geertjan/entry/getting_started_extending_visualvm_part

David Rabinowitz
So it can only be done by extending jvisualvm, and not in the default configuration?
Thorbjørn Ravn Andersen
Yes,, you need to write your own plugin for it. I read that netbeans has templates for writing visualvm plugins, but I haven't tried it.
David Rabinowitz