VisualVM - All-in-One Java Troubleshooting Tool
VisualVM is a new graphical troubleshooting tool that is being developed in a project on java.net. It gives access to the functionality that is available through existing JDK tools such as JConsole, jinfo, and jstack, and adds to that support for lightweight profiling of CPU and memory usage.
These screenshots from the project page give an idea of what the tool can do.
The tool is extensible via downloadable plugins, and the latest milestone publishes an API for developing your own plugins. Also, if you have developed plugins using the JConsole Plugin API it's possible to use them unchanged in VisualVM.
I'm not personally involved in this project but I'm certainly following it with great interest.
[Tags: visualvm.]
- Login or register to post comments
- Printer-friendly version
- emcmanus's blog
- 1440 reads






Comments
by lukebike - 2008-02-27 02:37
Hi, I've a question on Jconsole... For our application we've specialized javax.management.Notification, and we've the problem that we can't see these notifications in jConsole anyway Is it possible this in jConsole of last visualVm rel.? thanksby lukebike - 2008-02-27 08:07
I agree with you! thanks lukeby emcmanus - 2008-02-27 02:53
We don't recommend creating custom subclasses of Notification because it tends to create problems with clients like those you are seeing. Instead, we recommend packing the custom information that you want to include in the Notification inside a CompositeData that you set as the Notification's UserData.
However, if you do want to go with custom classes, then you can probably make it work by specifying a classpath to JConsole. The command would be something like:
jconsole -J-Djava.class.path=$JDK_HOME/lib/jconsole.jar:$JDK_HOME/lib/tools.jar:/some/path/custom.jar(using ; instead of : if on Windows). I haven't tried this with VisualVM but I see it has a --cp:a option that you can use to add things to the classpath, so you might be able to run it with just --cp:a /some/path/custom.jar