Questions tagged [jconsole]

A Java debugging aid that redirects any System.{out,err} to a console window.

"Java Console" explains:

Java Console is a simple debugging aid that redirects any System.out and System.err to the console window. It is available for applets running with Java Plug-in and applications running with Java Web Start.

See also How do I enable and view the Java Console?

JConsole may also refer to the eponymous Java Virtual Machine monitoring tool.

439 questions
238
votes
12 answers

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

How to activate JMX on a JVM for access with jconsole?
Mauli
  • 15,951
  • 26
  • 80
  • 112
122
votes
20 answers

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…
Will Hartung
  • 107,347
  • 19
  • 121
  • 195
98
votes
12 answers

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…
tuler
  • 3,084
  • 5
  • 30
  • 42
56
votes
12 answers

Connecting 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 \ …
Niger
  • 3,646
  • 5
  • 26
  • 29
44
votes
5 answers

How to connect to a java program on localhost jvm using JMX?

I should connect to a java program on localhost jvm using JMX. In other words I want to develop a JMX client to config a java program on localhost. Don't recommend using JConsole! JConsole is not suitable because it is general JMX client and have…
mjafari
  • 674
  • 2
  • 12
  • 22
34
votes
9 answers

Can jconsole data be retrieved from the command line?

I am currently using 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…
Jonathan
  • 3,286
  • 9
  • 40
  • 53
30
votes
12 answers

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.
None
28
votes
7 answers

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…
Bob Cross
  • 21,763
  • 12
  • 52
  • 94
28
votes
5 answers

How to connect to Java instances running on EC2 using JMX

We are having problem connecting to our Java applications running in Amazon's EC2 cluster. We definitely have allowed both the "JMX port" (which is usually the RMI registry port) and the server port (which does most of the work) to the…
Gray
  • 108,756
  • 21
  • 270
  • 333
25
votes
8 answers

Debugging JConsole Connection Failed

I have a web application deployed to a remote resin server, and it has JMX turned on. I can telnet to the remote server i.e franz@see:/tmp$ telnet 5555 Trying ... Connected to . Escape character is…
Franz See
  • 3,025
  • 2
  • 38
  • 47
23
votes
3 answers

Bypassing JConsole requirement for username/password - when using a Jaas custom login module with JMX to handle authorization and authentication

I'm using JConsole to access an MBean that is running. The MBean uses a custom Jaas login module and is run with the following command: java -classpath UserLGUGroupHandlingApplication.jar;MBeanSecure.jar…
Loco234
  • 511
  • 4
  • 19
22
votes
5 answers

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…
Marc Novakowski
  • 42,180
  • 11
  • 55
  • 62
21
votes
6 answers

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…
Kees de Kooter
  • 6,451
  • 5
  • 37
  • 42
21
votes
8 answers

JConsole can't find process

I tried to run JConsole to analyze the memory used by a running process, but JConsole doesn't show me processes even though I am absolutely sure that one is running (in addition to that it should show JConsole in the process list as well but it…
user1765902
  • 281
  • 1
  • 3
  • 7
19
votes
3 answers

How to monitor a Java program using Jconsole?

I have written a program to print number from 1 to 200 using 2 threads. Now I want to monitor this program using JConsole. Basically I want to learn how to use JConsole for monitoring an application. I searched google but couldn't find something…
Thinker
  • 6,342
  • 9
  • 23
  • 46
1
2 3
29 30