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.

450 questions
20
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,820
  • 9
  • 27
  • 54
18
votes
4 answers

jps process information unavailable - jconsole and jvisualvm not working

After a windows update, my jps, jconsole et jvisualvm are not working anymore. Jps gives me the process ids, but it tells me process information unavailable And I'm unable to connect to those processes with jvisualvm as I used to. I'm running the…
Laurent K
  • 3,503
  • 3
  • 30
  • 36
17
votes
1 answer

Use of JMX and How to use for existing applications

We have distributed web application developed few years back on JDK 5. How JMX will help this application? 1) Will it help me to monitor performance (Memory, CPU and Network & Disk IO)? 2) If so then application is deployed in multiple…
learner
  • 625
  • 2
  • 11
  • 25
16
votes
3 answers

JConsole command line credentials

Is it possible to pass credentials for monitored resource to JConsole while starting it via command line. I've got the command like that right now. ${jdk.home}/bin/jconsole.exe -J-Djava.class.path=${jdk.home}/lib/jconsole.jar; …
2DH
  • 1,648
  • 2
  • 10
  • 19
16
votes
5 answers

Jconsole cannot connect

I am using VNC to connect to a server. I am able to VNC into the server, and open Jconsole, but cannot get it to connect to my process whether I include the PID or try connecting using the GUI. The weird thing is all the processes show up in the…
ControlAltDelete
  • 3,576
  • 5
  • 32
  • 50
15
votes
2 answers

Java Thread monitoring. How to find out non daemon live threads?

I see in JConsole that I still have 2 non daemon threads but I can't find out which exactly (total number of thread is beyond 30). Visual VM doesn't provide such information.
Bax
  • 4,260
  • 5
  • 43
  • 65
14
votes
2 answers

Better options to view JMX beans other than Jconsole

JConsole has quiet a buggy view to monitor JMX published counters. What are the other alternatives ? I am unable to find any, other than JVisualVM which in effect uses the same view
Basit Anwer
  • 6,742
  • 7
  • 45
  • 88
13
votes
5 answers

MBean Simple Graph Monitor

I have some JMX Beans that expose performance information in my application. I would like to have some facility to plot an attribute of an MBean in a graph for monitoring (a la Windows Perf Mon). I love the stuff that comes with JConsole and…
noplay
  • 2,391
  • 6
  • 26
  • 33
11
votes
4 answers

Using Jconsole for Memory Leak

I'm trying to diagnose some memory issues in our J2EE server. I've setup jconsole on our live server and I'm trying to monitor the status of the tomcat server through it. I've a quick question about the Threads tab in jconsole. I can see a thread…
Silent Walker
  • 330
  • 1
  • 5
  • 11
11
votes
1 answer

Extending JCONSOLE functionality for client remote connections

I have a simple JMX application that has exposed MBeans based on this tutorial Is it possible to launch this application with a custom class in the classpath that extends JCONSOLE, so that when a client tries to access it remotely the extended…
Loco234
  • 521
  • 4
  • 20
11
votes
5 answers

How to ouput text to console from Servlet

I have a servlet. But it is not working as desired. Hence for debugging purposes, I want to print statements to the java console(the one that can be opened using the java icon in taskbar). However, if I use System.out.println("message"), it doesnt…
mithun1538
  • 1,447
  • 8
  • 25
  • 32
11
votes
2 answers

How do I programmatically dump JMX data?

I want to be able to log all JMX data accessible via jconsole. Is there a way to do this programmatically? I'm building a form of logging of the system, and I want to create intervaled data viewable with some tool similar to jconsole. How would I go…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
11
votes
1 answer

jconsole error during jrmp connection establishment nested exception is : java.io.EOFException

I am trying to monitor a remote process using jconsole and this was the command I used jconsole -debug localhost:4080 And this is the stack trace that I get java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception…
amrk7
  • 1,194
  • 5
  • 13
  • 33
11
votes
2 answers

Disabling Local JMX Connections on JVM

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…
mohsen
11
votes
1 answer

Why are some methods on the JConsole disabled

I can see that some methods on the jconsole are disabled. Given below is the screenshot for com.sun.management.ThreadMXBean The javadocs for these MBean methods do not specify anything about the accessibility part. I think it is a security feature,…
Ajay George
  • 11,759
  • 1
  • 40
  • 48
1
2
3
29 30