JConsole plugin for VisualVM Preview 2

Overview

This is an experimental plugin for VisualVM Preview 2 that allows to add the JConsole tool functionality into the VisualVM tool. This new VisualVM plugin provides support for JConsole core tabs as well as custom JConsole plugins for both local and remote Java applications.

The JConsole tab will be enabled - by right-clicking in a given local or remote application and choosing the Open item in the contextual menu - in the following cases:

  • local process:
    • the local Java application is running on JDK 6 or higher (no special management system property needed)
    • the local Java application is running on JDK 5 and has been started with the -Dcom.sun.management.jmxremote system property, e.g.
      $ java -Dcom.sun.management.jmxremote MyApp
  • remote process:
    • the remote Java application is running on JDK 5 or higher and has been started with a specific port for remote management and security has been disabled (both authentication and encryption), e.g.
      $ java -Dcom.sun.management.jmxremote.port=<port> \\
             -Dcom.sun.management.jmxremote.authenticate=false \\
             -Dcom.sun.management.jmxremote.ssl=false MyApp

Usage

$ visualvm [-J-Djconsole.hidden.tabs=[AOMTCSB]] [-J-Djconsole.plugin.path=<plugin-path>]

Two system properties have been defined by this plugin to control the JConsole core tabs we want to hide and to specify the location of the custom JConsole plugins.

  • -Djconsole.hidden.tabs=[AOMTCSB]

    where:
    • A = All core tabs
    • O = Overview tab
    • M = Memory tab
    • T = Threads tab
    • C = Classes tab
    • S = VM-Summary tab
    • B = MBeans tab

  • -Djconsole.plugin.path=<plugin-path>

    where <plugin-path> specifies the paths of JConsole plugins to look up which can be a directory or a jar file. Multiple paths are separated by the path separator character of the platform.

Installation notes

If you want to play with it just download the org-netbeans-modules-management-jconsole.nbm NBM file from here and install it. In order to install it choose Tools > Plugins from the main menu of VisualVM, go to the Downloaded tab and click on the Add Plugins button. Specify the location where you stored the JConsole NBM file and click on the Install button.

VisualVM-JConsole plugin installed

Use cases

Find here below some examples of use:

  • VisualVM running with JConsole plugin with all JConsole core tabs:

    $ visualvm

  • VisualVM running with JConsole plugin with all JConsole core tabs

  • VisualVM running with JConsole plugin with all JConsole core tabs and JTop custom plugin:

    $ visualvm -J-Djconsole.plugin.path="C:\\Program Files\\Java\\jdk1.6.0_10\\demo\\management\\JTop\\JTop.jar"

  • VisualVM running with JConsole plugin with all JConsole core tabs and JTop custom plugin

  • VisualVM running with JConsole plugin without JConsole core tabs and JTop custom plugin:

    $ visualvm -J-Djconsole.plugin.path="C:\\Program Files\\Java\\jdk1.6.0_10\\demo\\management\\JTop\\JTop.jar" \\
               -J-Djconsole.hidden.tabs=A

  • VisualVM running with JConsole plugin without JConsole core tabs and JTop custom plugin

  • VisualVM running with JConsole plugin without Overview/Memory/Classes/VMSummary/MBeans JConsole core tabs and JTop custom plugin:

    $ visualvm -J-Djconsole.plugin.path="C:\\Program Files\\Java\\jdk1.6.0_10\\demo\\management\\JTop\\JTop.jar" \\
               -J-Djconsole.hidden.tabs=OMCSB

  • VisualVM running with JConsole plugin without Overview/Memory/Classes/VM-Summary/MBeans JConsole core tabs and JTop custom plugin

Comments:

Hi,

cool plugin! Recently I've done a jconsole plugin version of my little TDA tool and using this I was able to use it in VisualVM.

I've done a short test of this here: http://www.jroller.com/dumpster/entry/running_tda_in_visualvm_preview

regards,

Ingo

Posted by Ingo Rockel on November 26, 2007 at 01:59 AM CET #

Looks nice, but cannot be installed in the Milestone 1 of VisualVM.

Posted by Sven Reimers on January 22, 2008 at 12:33 AM CET #

Hi,

this is really cool - having jconsole functionality within visualvm is s.th. like a must have :)

Unfortunately this does not work with visualvm 1.0.1, when I try to install the plugin I get this error message:

Missing required modules for Plugin VisualVM-JConsole:
module org.netbeans.modules.management = 071119

Is there a way to get around this, or are you even going to release an updated version of this plugin?

Thx && cheers,
Martin

Posted by Martin Grotzke on September 26, 2008 at 01:34 AM CEST #

Hola Luis Miguel

I'm having the same problem:

Missing required modules for Plugin VisualVM-JConsole:
module org.netbeans.modules.management = 071119

I looked everywhere in the net for this dependency and did not find it, is that an old netbeans module?

Please help I really would like to have this functionality.
Thanks in advanced for your support.

Posted by Juan Molina on October 10, 2008 at 07:48 AM CEST #

This plugin was experimental and replaced by the final JConsole plugin available in the VisualVM Plugins Center.

The new JConsole plugin for VisualVM should be used as a migration path for legacy JConsole plugins in its way into better integration into VisualVM.

The existing MBeans, JConsole and VisualGC plugins for VisualVM should cover most of JConsole's functionality but of course you can still run JConsole as a standalone tool if you wish.

Posted by Luis-Miguel Alventosa on October 10, 2008 at 08:32 AM CEST #

i need java sun (java + you )plz send thankyou.

reg : Akhter

Posted by Akhter on February 03, 2009 at 11:35 AM CET #

i need java sun (java + you )plz send thankyou.

reg : Akhter

Posted by Akhter on February 03, 2009 at 11:37 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

lmalvent

Search

Categories
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