| VisualVM, Java's own monitoring, profiling and performance analysis tool |
| Java Concepts | ||||||||||||||||||||||||||||||||||||||||||||||||
| Written by Vimal | ||||||||||||||||||||||||||||||||||||||||||||||||
| Thursday, 17 July 2008 17:35 | ||||||||||||||||||||||||||||||||||||||||||||||||
|
VisualVM, Java's own monitoring, profiling and performance analysis tool. Even though many monitoring and diagnostics features are enhanced and introduced in Java 6, still it has been lacking an out-of-the-box bundling of a convincing visual Java application monitoring or profiling tool, until the most recent JDK6 Update 7. VisualVM is an open source tool for monitoring and profiling your java application. VisualVM is now integrated with JDK 6 update 7 release. So, from now on you need not pay a hefty price for licensing third party profilers. In this article we'll walk through the features of VisualVM and see how it is different from commercial profiling tools.
Let's see what the entire buzz is all about. You can find VisualVM under the bin directory of your JDK6u7 installation. Just double click the exe and its there the VisualVM.
The main window of VisualVM opens when you launch the application. By default, the Applications window is displayed in the left pane of the main window. The Applications window enables you to quickly see the Java applications running on local and remote JVMs. The Applications window is the primary entry point for viewing further details about a particular application. Right-clicking an application node opens the popup menu where you can choose to open the main application tab or take thread or heap dumps.
If you have used the Netbeans platform, you can easily recognize that VisualVM is also built upon the Netbeans Platform. Now that you have VisualVM running you can do several things like 1) Create and visually view heap Dumps 2) Profile memory usage 3) Profile CPU Usage 4) Profile Threads
In the past you had to use one or more commercial tools to get the above tasks done. But with VisualVM you have one integrated tool that can do all the above. VisualVM allows you to do much more than traditional monitoring and profiling. 1) You can take a snap shot of the thread status and heap status and save them for analyzing offline. 2) You can monitor multiple applications both local and remote from a single VisualVM instance. You can also take simultaneous thread dumps of multiple applications for analyzing distributed dead locks. 3) No need for complex configuration. Traditional memory profilers either require you to run your applications in a special, modified JVM or start your applications with the profiler agent. But with VisualVM, you start your java applications normally and VisualVM automatically lists the Java applications running on your local machine. 4) VisualVM is extensible. Yes we love plugins, and since VisualVM is built on the NetBeans Platform, its architecture is modular and easy to extend with plugins. There are several plugins already available for VisualVM like:- MBeans Browser, JConsole Plugins Container, VisualVM Extensions, Visual GC Plugin, GlassFish Plugin, BTrace Plugin, TDA Plugin.
Only registered users can write comments!
Powered by !JoomlaComment 3.22
3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
||||||||||||||||||||||||||||||||||||||||||||||||
| Last Updated ( Friday, 18 July 2008 18:35 ) | ||||||||||||||||||||||||||||||||||||||||||||||||









