Wednesday Oct 21, 2009

VisualVM

The NetBeans team (Tomas, Jirka & all) has just released version 1.2 of the VisualVM, Java profiling and troubleshooting tool. A bunch of good stuff in this release:

  • Sampling CRU and memory profiler
  • Redesigned charts with dynamic tooltips (my favorite feature by far)
  • Enhanced support for jstatd connections

I've already had a version the visualVM that came with JDK 6 update 16 (look in <JAVA_INSTALL_DIR>/bin/ for jvisualvm executable), however these new improvements made it worthwhile to install the stand alone version as well.


Monday Jun 15, 2009

Subversion support in NetBeans

I have not been into the code in the last couple of month, however I recently needed to look at the performance of a JavaFX application written by a 3rd party. I am using a new Windows notebook and I had the JavaFX development environment (NetBeans 6.5.1 + JavaFX SDK) setup, however the project had the sources in an subversion repository and I did not have it installed. Now onto the interesting part. As I used NetBeans in trying to connect to the SVN repository, the IDE prompted me to facilitate the installation of SVN for Windows. Sweet! I was up and running in no time. I guess this is one of the core the value proposition of IDEs - easy of use, and NetBeans delivered. 

On a related note, I am using the VisualVM (look for jvisualvm in your JDK install path) tool that now ships with the JDK, to profile and troubleshoot the 3rd party app. Some of you may know that the VisualVM is based on the NetBeans platform and offers a plugable model for building serviceability tooling for the Java platform. I hope that John's team will shortly port the Thread Scheduling Visualizer as a VisualVM extension.

Tuesday Jul 08, 2008

VisualVM now part of the JDK set of tools

The NetBeans team just announced the availability of VisualVM 1.0, which ships along JDK 6 update 7.

"VisualVM is a free opensource visual tool integrating several commandline JDK tools and lightweight performance and memory profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform."

This version of the tool requires Java SE 6, so to run it on the Mac you'll have to install the latest version from the Apple website. In addition you'll likely have to invoke the tool with the --jdkhome flag to load the appropriate version of the JDK.

./visualvm --jdkhome /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/

As you can see from the screen shot, you can easily monitor local and remote Java applications. The tool will help you discover performance and memory bottlenecks, debug threading problems or inspect contents of the heap. The data can be saved into a single snapshot and processed offline.

Sunday Mar 09, 2008

Performance analysis and diagnostic aid for Java applications

I just tried the latest iteration of the VisualVM tool, which just released a beta. Very impressive, especially the GlassFish related capabilities. I wonder if there is comparable tooling for other application servers. Here is the functionality in a nutshell:

  • Monitoring and performance analysis for Java SE and EE
  • Integrates the features of several JDK tools
    • jps, jinfo, jstack, jmap, and more
  • Provides lightweight memory and CPU profiling
    • Designed for both development and production
  • Can observe JDK 1.4.2 or higher
  • Provides APIs for writing add-on plugins
Nota bene: If you want to monitor GlassFish apps you'll have to get the plugin from the tool's update center: Tools | Plugin and also some minimal GlassFish configuration is required: In the admin console go to Application Server | Monitor | Runtime | Configure Monitoring and set Web Container to "High". You can also try and use this http://localhost:4848/configuration/monitoringService.jsf?configName=server-config  to open the configuration
About

octav

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today