09 | 02 | 2010
Main Menu
Affiliates
Who's Online
We have 25 guests online
Alexa
VisualVM, Java's own monitoring, profiling and performance analysis tool
Java Concepts
Written by Vimal   
Thursday, 17 July 2008 17:35

Rating 2.6/5 (14 votes)

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.

 

 

 

 

 



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! JoomlaVote! Google! Live! Facebook! StumbleUpon! Yahoo! Free social bookmarking plugins and extensions for Joomla! websites!
Comments
Search
Jochen  - Typo   |195.24.98.xxx |2008-07-18 03:39:08
I guess JDK7u6 should be JDK6u7.
William Louth  - CEO/CTO     |213.84.237.xxx |2008-07-18 06:18:52
If you think being 20 times slower than a commercial tool, having no underlying
performance or diagnostic model, no runtime open api, and offering a primitive
plug-in-your-own-tab-to-create-a-mary-shelley-solu tion, no clustering ability,
no.., no...., no......... is good enough when the price is zero then fine. But
to say it is better than other commercial tools is complete nonsense and shows a
level of ignorance of other offerings and the real-world of production
monitoring.
Jim Cook   |65.210.129.xxx |2008-07-18 09:59:10
William's points are somewhat valid and defensive albeit, not for good
reason. A free product that is supported and advocated by the company
behind the language would naturally cause concern for a commercial
company competing in the same space.

I'm sure JInspired's seven
different testing products will still offer value over VisualVM to
those _companies_ willing to contact a sales representative to get a quote
regarding one of your products. I suggest you post on your website a
clear pricing policy and post blog comments that stress the technical
advantages of your product instead of this mild rant. (I
rarely consider products with blind pricing over competitors with a
similar feature set who clearly state their pricing. http://www.yourkit.com/purchase/index.jsp)

BTW, I'm not sure where I see mention of VisualVM claiming superiority
over commercial...
William Louth     |213.84.237.xxx |2008-07-18 10:59:18
There are not 7 different testing products.

It clearly states one product,
JXInsight, and list the technologies.

PS: JXInsight has 500 technology
specific extension libraries and over 4000+ system properties. Do you need to
know them all? No. But it is good to know that there is always an option for
every runtime choice in the product.
Jim Cook   |65.210.129.xxx |2008-07-18 12:44:55
Hrmmm...clearly states? I understand now from what you have stated that this is
one product. But consider the point of view of a visitor to your site who may
not be as familiar with your product line as you are.

Form the home page, they
click a link that says "Products", not "Product" or
"JXInsight". They are then taken to a page that appears to show a table
with 7 different "technologies" each with their own PDF, set of use
cases, feature sets and version numbers.

You may want to redesign to make it
clearer that the potential user doesn't have to purchase seven different
products.
William Louth  - CEO/CTO     |213.84.237.xxx |2008-07-18 14:17:21
The link is referring to a pending release of a new product not yet announced.
Sorry, a bit premature.

I will have the products page changed to make this much
more obvious. Thanks.
William Louth  - CTO/CEO     |213.84.237.xxx |2008-07-18 10:43:10
http://www.jinspired.com/products/jxinsight/pricin g.html

This has been on our
website for years. We recently (two weeks ago) changed the site with a focus on
XPE which is priced on a subscription basis.

We also had 250+ blog entries on
our site http://blog.jinspired.com but moved them to xpe.jinspired.com. Each
entry clearly indicated and measured the products technical superiority.

You
can check out our release notes going from 5.7 to 2.0 showing capabilities not
existent in visualvm.
http://www.jinspired.com/products/jxinsight/

I have no
problem with Sun offering a free solution. The JRockit team have done this for
sometime and it never matter in a pre-production or production environment.


The issue I have with this article and its headline on DZone is its knocking
of commercial solutions (con)fusing free with better.

Here is the sub-heading
on the DZone posting.
"VisualVM is better than Expensive commercial
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Friday, 18 July 2008 18:35 )
 
Bottom Ad
Your Ad Here