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
6
votes
2 answers

How to read heap dump file which is created by jconsole?

I performed a heap dump manually by invoking the com.sun.management.HotSpotDiagnostic MXBean's dumpHeap operation in jconsole. So I got a dump file. My question: Can jconsole read the dump file? If not, which tool can read it? Thanks! EDIT: Now I…
卢声远 Shengyuan Lu
  • 31,208
  • 22
  • 85
  • 130
6
votes
1 answer

Java: G1 Old generation garbage collection count is 0

We are setting up monitoring for GC for Kafka, which is running Jolokia JMX agent. We are using Telegraph to ship JMX out of the system to our Grafana servers for plotting the graph. When we check the G1 GC count for Old Generation we can see that…
Bidyut
  • 933
  • 1
  • 14
  • 30
6
votes
4 answers

Is there a way to do a live heap dump with ibm-jdk for linux?

I know that it's possible to dump heap when an OutOfMemoryException is occuring on this JVM but is it possible to ask a live dump with tools like jmap or jconsole?
Opty
  • 504
  • 5
  • 10
6
votes
3 answers

Cannot connect to remote JMX

I have a tomcat application on the remote host and need to connect it by JConsole. Application starts with params: IP=`ifconfig eth0 | grep 'inet addr:' | cut -d ':' -f2 | cut -d ' '…
Kirill
  • 1,540
  • 4
  • 18
  • 41
6
votes
2 answers

Disable jconsole popup: "Secure connection failed. Retry insecurely?"

Is there a way to disable this jconsole popup? I know I can set up SSL per http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html#gdemv, but that would mean I'd need to do that on all servers (java) and all clients (jconsole).…
levant pied
  • 3,886
  • 5
  • 37
  • 56
6
votes
6 answers

JConsole remote connection to JBoss EAP

I am trying to connect to a remote jboss instance running on a server. I am using the following connection URL service:jmx:remoting-jmx://90.214.64.170:9999 When i do this i get the following 2 errors in the console window After selecting…
Biscuit128
  • 5,218
  • 22
  • 89
  • 149
6
votes
5 answers

Wildfly 8 Final - jconsole can't connect remotely

Good day, people, I am trying to use jconsole to connect to remote Wildfly 8 Final servers. That did not work: Connection failed. After multiple tries and failures I attempted to make it connect at least to my 'localhost' jboss, but even that is not…
user2113581
  • 277
  • 1
  • 4
  • 11
6
votes
1 answer

JVisualVM is unable to connect to process using the --openpid argument

I have an application that is running as a win-service (using Apache-Procrun). I want to monitor that application with JVisualVM. I've used the commandline argument --openpid without success, ironically the old JConsole managed to connect to…
Chriss
  • 5,157
  • 7
  • 41
  • 75
6
votes
4 answers

System.gc() vs GC button in JVisualVM/JConsole

I'm currently testing my proof of concept prototype dealing with XML schema, and built around a very memory consuming external library for tree automata (for which I've got the sources), I'd like to plot "real peak" (heap) memory consumption of the…
Alessandro S.
  • 875
  • 12
  • 24
5
votes
4 answers

Java jconsole jmx connection failure

I'm trying to connect jconsole to a jvm invoked by: java \ -Djava.util.logging.config.file=./logging.properties \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false…
Steven
  • 273
  • 1
  • 6
  • 17
5
votes
1 answer

how to specify jmx mbean to render it as a tree in jconsole?

My application has a specific set of keys for which I monitor values(min, max, etc..). It looks very similar to the following: public class Data implements Serializable{ int max, min; //etc.. } public interface HelloMBean{ String []…
Ajay
  • 977
  • 2
  • 11
  • 23
5
votes
1 answer

Monitor c3p0 (with hibernate and Tomcat) with JConsole

The Web App is a Struts application (no spring) using c3p0 with Hibernate and it's in Tomcat 6. Both Hibernate and c3p0 jars are in the {WEB_APP}/WEB-INF/lib folder. In Tomcat the jmx remote is enabled: -Dcom.sun.management.jmxremote…
Helen S.
  • 51
  • 3
5
votes
2 answers

Wildfly 10 Final indefinitely creating ActiveMQ-client-global-threads

I have a Wildfly AS setup for JMS, I;m monitoring it with Jconsole and have noticed that before I even create a session on my Consumer or Producer the thread count is steadily increasing, I was previously using Wildfly 9 final for the same purpose,…
JTK
  • 1,469
  • 2
  • 22
  • 39
5
votes
1 answer

java.lang.SecurityException: Expecting a sun.rmi.server.UnicastRef2 remote reference in stub

I am trying to connect to a remote Java process which is running on a different machine using JConsole tool on my Ubuntu machine. This is how I am running the Java program in remote machine: sudo java -Dcom.sun.management.jmxremote.port=51082 …
Chaitanya
  • 15,403
  • 35
  • 96
  • 137
5
votes
1 answer

Can JConsole show an MXBean attribute with type UUID as a String?

I have an MXBean that returns an attribute containing Set. When JConsole shows a UUID it treats it as composite data with two attributes - leastSignificantBits and mostSignifitcantBits. Instead of changing my MXBean to return Set is…
Mark
  • 28,783
  • 8
  • 63
  • 92