Steps to configure the jconsole

jconsole, a very popularly used JMX-compliant monitoring tool, provides information on performance and resource consumption of applications running on the Java platform.
This can be used to monitor both local applications (those running on the same system as jconsole) and remote applications (those running on other systems).
Local monitoring with jconsole is useful for development and prototyping. Using jconsole locally is not recommended for production environments, because jconsole itself consumes significant system resources. Rather, use jconsole on a remote system to isolate it from the platform being monitored.

There may be lots of document found after googling, but I’ve tried to make this a compact one helpful for users.
There are two ways to configure the jconsole:
1) Configure using the command line properties
2) Using the jmxserverapp.war

1) Configure using the command line properties

In this approach, set the following system properties when you start the Java virtual machine (JVM).

This usually be set in the run.conf located in JBOSS_HOME/bin


JMX URL: service:jmx:rmi:///jndi/rmi://:/jmxrmi

e.g.: service:jmx:rmi:///jndi/rmi://

2) Using the jmxserverapp.war file

• Copy the war file located at the above location into the deploy folder of the JBoss instance
e.g.: /opt/jboss/jboss420/jboss-as/server/

• Open the web.xml present in this application (e.g.:/opt/jboss/jboss420/jboss-as/server/ and edit the values in bold below.

<?xml version=”1.0″ encoding=”UTF-8″?>

<web-app xmlns:xsi=”; xmlns=”; xmlns:web=”; xsi:schemaLocation=”; id=”WebApp_ID” version=”2.5″>


































• Open the run.conf and add the below system properties


• Restart the server instance using the startup scripts

JMX URL: service:jmx:rmi://:/jndi/rmi://:< registryport>/server

e.g.: service:jmx:rmi://
Run jconsole:
Start jconsole by typing jconsole in a command shell. (This will be located in JAVA_HOME/bin) When you start jconsole without any arguments, it will automatically detect all local Java applications, and display a dialog box that enables you to select the application you want to monitor. Both jconsole and the application must by executed by the same user name, since the monitoring and monitoring system uses the operating system’s file permissions.
For remote Java applications, run the jconsole in a command shell and provide the JMX URL to connect.

Select the Remote Process and provide the JMX URL, which can be constructed as described above and click connect



10 thoughts on “Steps to configure the jconsole

  1. Genevieve Thy December 25, 2011 at 1:27 am Reply

    I wanted to visit and let you know how much I valued discovering your web blog today. I’d consider it a real honor to operate at my office and be able to operate on the tips discussed on your web site and also be involved in visitors’ feedback like this. Should a position regarding guest article author become available at your end, remember to let me know.

  2. Jarvis Branch January 26, 2012 at 10:02 am Reply

    Normally I don’t read article on blogs, however I wish to say that this write-up very compelled me to check out and do so! Your writing taste has been surprised me. Thanks, quite great article.

  3. Makeda Rexach January 30, 2012 at 9:11 am Reply

    Its like you read my mind! You seem to know a lot approximately this, like you wrote the e-book in it or something. I feel that you just could do with some percent to pressure the message house a little bit, however instead of that, this is magnificent blog. An excellent read. I’ll definitely be back.

  4. Letisha Gash February 1, 2012 at 6:05 am Reply

    I got what you mean , thanks for posting .Woh I am thankful to find this website through google. “Remember that what you believe will depend very much on what you are.” by Noah Porter.

    • Keshab February 2, 2012 at 11:32 am Reply


  5. harman pellet stoves February 2, 2012 at 2:37 am Reply

    I dugg some of you post as I cogitated they were very helpful handy

  6. Harman Pellet Stoves February 2, 2012 at 7:31 pm Reply

    Thank you for the good writeup. It in fact used to be a leisure account it. Look complex to more added agreeable from you! However, how can we communicate?

  7. Daniel Coty February 3, 2012 at 10:29 am Reply

    I gotta favorite this web site it seems very useful extremely helpful

  8. Charley Nunez February 4, 2012 at 2:37 am Reply

    Excellent post however I was wondering if you could write a litte more on this topic? I’d be very thankful if you could elaborate a little bit more. Cheers!

  9. Bennett Fergen February 4, 2012 at 5:05 pm Reply

    I was looking through some of your content on this internet site and I think this internet site is very instructive! Continue posting .

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: