jconsole

JConsole Config

in JBoss' run.bat, add: set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9987 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false To start jconsole: JDK/bin>jconsole localhost:9987 ...

Problem using JConsole remotely with JBoss 4.2.2 with app that uses JWS

I am trying to set up JBoss 4.2.2 and JConsole for remote monitoring. As per many of the how-to's I have found on the web to do this you need to enable jmxremote by setting the following options in run.conf. (I realize the other two opts disable authentication) JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=11099" JAVA_OPTS...

Has anyone ever got a remote JMX JConsole to work?

It seems that I've never got this to work in the past. Currently, I KNOW it doesn't work. But we start up our Java process: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6002 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false I can telnet to the port, and "something is ther...

CompositeData has no keys() method?

I'm using JMX to save some diagnostic information from a remote process. Looking at the interface in jconsole shows that the return type is CompositeData (the data actually comes back as CompositeDataSupport). I want to output all the key/value pairs that are associated with this object. The problem is that the interface just seems to h...

How do you get jconsole charts to show decimals?

If you return a double or float from your MBean jconsole seems to round it down to the nearest integer. ...

can jconsole be used with J2EE?

all the examples I see are for J2SE applications by passing your JAR file at the command line. Can JConsole attach to a WAR or EAR and monitor application performance? ...

How to have JMX bind to a specific interface?

I am currently starting my Java VM with the com.sun.management.jmxremote.* properties so that I can connect to it via JConsole for management and monitoring. Unfortunately, it listens on all interfaces (IP addresses) on the machine. In our environment, there are often cases where there is more than one Java VM running on a machine at t...

How do you enable JMX in Websphere?

I would like to use JConsole to monitor my Websphere application, but I am not sure how to enable JMX. ...

Strategies for the diagnosis of Java memory issues

Hello, I've been tasked with debugging a Java (J2SE) application which after some period of activity begins to throw OutOfMemory exceptions. I am new to Java, but have programming experience. I'm interested in getting your opinions on what a good approach to diagnosing a problem like this might be? This far I've employed JConsole to ...

Unable to use JConsole with Tomcat running as windows service

I am running tomcat 6.0.18 as a windows service. In the service applet the jvm is configured default, i.e. it is using jvm.dll of the JRE. I am trying to monitor this application with JConsole but cannot connect to it locally. I added the parameter -Dcom.sun.management.jmxremote (which works when starting tomcat with the start.bat scrip...

How do I change the description of input's displayed for an operation defined using a MXBean

I'm using a MXBean to instrument a certain feature, and I have a method that takes in 3 input arguments. By default, on the jconsole, the arguments are displayed as p1, p2, p3 etc. I have @params describing each parameter. How do I make jConsole use those? public class Sample implements SampleMXBean { /** * method 1 * ...

Does Java 6 open a default port for JMX remote connections?

My specific question has to do with JMX as used in JDK 1.6: if I am running a Java process using JRE 1.6 with com.sun.management.jmxremote in the command line, does Java pick a default port for remote JMX connections? Backstory: I am currently trying to develop a procedure to give to a customer that will enable them to connect to on...

Where is JConsole in Leopard

Hi, does anyone knows where JConsole is Located in MacOSX (Leopard)? ...

Remote JMX connection

I'm trying to open a JMX connection to java application running on a remote machine. The application JVM is configured with the following options: com.sun.management.jmxremote com.sun.management.jmxremote.port=1088 com.sun.management.jmxremote.authenticate=false com.sun.management.jmxremote.ssl=false I'm able to connect using localh...

How to activate JMX on my JVM for access with jconsole?

How to activate JMX on a JVM for access with jconsole? ...

How do you pull up the java console in OpenSUSE or Ubuntu?

Hi, I'm working on a java applet, and I was wondering where the heck System.out was going in Ubuntu/OpenSUSE. In windows, I just pull up jconsole, but I've not found this in Ubuntu/OpenSUSE. Thanks. ...

Can jconsole data be retrieved from the command line?

I currently use jconsole to monitor performance metrics of my Java application and would like to script this data acquisition. Is there a way to retrieve these VM metrics (heap memory usage, thread count, cpu usage, etc) to STDOUT? The data in "top -p PID -b -n 1" doesn't quite cut it. Thanks ...

How to activate JMX on remote Glassfish server for access with jconsole?

I would like to monitor remote glassfish server. I have enabled JMX Connection in domain.xml: <jmx-connector accept-all="true" address="0.0.0.0" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false"> But this didn't help. I still can't connect to server with JConsole. Then ...

Disabling Local JMX Connections on JVM

Hi, We are writing a java program which keeps a password in memory. Unfortunately, the user can easily use jconsole or jmap to create a heap dump file and open it to find the password. I think jconsole connects jvm using local sockets. I wanna know, is there any way to disable jmx even for local users? Is there any way to totally disable...

Conntecting remote tomcat JMX instance using jConsole

I am trying to connect to a remote tomcat JMX instance using jConsole. But can't connect successfully. Any Idea? I included the following option in remote tomcat catalina.sh: JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9004 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun...