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
3
votes
1 answer

How to define new metrics for custom Processor (and make them available in jconsole)?

i have a processor which should produce kstream JMX metrics: public class ProcessorJMX implements Processor { private StreamsMetrics streamsMetrics; private Sensor sensorStartTs; @Override public void…
timmy_stapler
  • 547
  • 7
  • 15
3
votes
0 answers

Java 8 - Unable to attach to VM after process has been up for a few weeks

I have a production environment (RHEL 7, Java 1.8.0_102-b14) with a number of JBoss (EAP 7), Tomcat( 8 ) and standalone processes running. All of our processes have been running since our last release 18 days ago. I'm unable to connect to the JBoss…
beirtipol
  • 823
  • 5
  • 21
3
votes
3 answers

What launches a JVM thread?

(Please correct me if i am wrong) I understand that when you run a java program by issuing the java command, java MyProg the program will be run onto a new JVM. What loads the program into a new JVM? is it the JRE that spawns a new thread? If…
ziggy
  • 15,677
  • 67
  • 194
  • 287
3
votes
2 answers

BigInteger cosumes a lot of memory

I've got the following code to test: import java.math.BigInteger; import java.util.Random; public class TestBigInteger { public static void main(String[] args) { BigInteger bigInteger = BigInteger.probablePrime(32, new Random()) …
Tony
  • 3,605
  • 14
  • 52
  • 84
3
votes
0 answers

Can we use static methods in JMX bean?

I have Constants class in my web application. I want to monitor Constants class using Jconsole. I have @ManagedResource used annotation for Constants class and @ManagedAttributefor setter method. If I will use @ManagedAttribute for static method…
Darshan Patel
  • 3,176
  • 6
  • 26
  • 49
3
votes
1 answer

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.
Rowan
  • 874
  • 1
  • 6
  • 14
3
votes
1 answer

Unable to connect to remote JMX using VisualVM but OK with JConsole

I'm attempting to connect to a remote JMX service using VisualVM 1.3.8 with JRE 1.8.0. Making exactly the same connection with JConsole works perfectly, however the attempt to use the same parameters with VVM just hangs at the 'Adding services'…
Stephen Hartley
  • 945
  • 1
  • 11
  • 17
3
votes
1 answer

Jolokia Java client

I´m newbie at JMX. I developped a Web Service, using Glassfish as server. Now I want to monitorize my app; My first thought was using Jconsole and JVM as monitorizing tool remotly. After continue my research I find this…
Goldbones
  • 1,407
  • 3
  • 21
  • 55
3
votes
3 answers

How to see the memory usage of NIO buffers?

Is there a way to see the memory usage of NIO buffers? There is the non-heap memory section in JConsole, but I do not think this includes the NIO buffers? Operating system is Linux (Ubuntu or CentOS) if that would matter. regards, Wim
Wim Deblauwe
  • 25,113
  • 20
  • 133
  • 211
3
votes
1 answer

Monitoring resource use in Jboss in JMeter performance test

We are performing some JMeter tests on a JBoss 4.0.5 deployed web app. We want to integrate the resource usage on the application on the server (memory, threads, etc) with the JMeter response time results. We have found a tutorial for doing that…
Angel Palazon
  • 369
  • 1
  • 5
  • 16
3
votes
0 answers

Connecting to open shift with Jconsole - non-JRMP server at remote endpoint

I am trying to connect to an open shift application using jconsole. I am following the guide located here https://www.openshift.com/forums/openshift/accesing-jmx-mbean-as-7-app which says that after using rhc port forward we should get an output -…
Biscuit128
  • 5,218
  • 22
  • 89
  • 149
3
votes
2 answers

How does jconsole discover the JMX enabled processes on local system?

When I run jconsole it shows me a list of Java processes: I could then connect to one of these and see its MBeans. How does it discover the JMX processes? How can I do this in a program?
Kshitiz Sharma
  • 17,947
  • 26
  • 98
  • 169
3
votes
3 answers

How do I add a jar to jconsole classpath in windows?

I'm trying to invoke a JMX MBean via Jconsole, but the method that I'm calling receive an object that needs to be on jconsole classpath in order to work. I've tried this and the jconsole does not open (and no error is shown): jconsole…
Eduardo Briguenti Vieira
  • 4,351
  • 3
  • 37
  • 49
3
votes
1 answer

JConsole Total loaded classes behaviour

I monitored a Java7 application for a couple of week and I observed a couple of things that i would like to understand. From the application start the number of total loaded classes has grown constantly, I think that this is normal since the…
Panciz
  • 2,183
  • 2
  • 30
  • 54
3
votes
0 answers

JConsole/JVisualVm Empty Menu while connecting a remote machine

I have a java app running on serverA with port 1337. I can telnet the remote server with that port and telnet connection seems okay. But when I try to connect from my machine by using either JConsole or JVisualVm, I got nothing but a blank white…
denizdurmus
  • 1,289
  • 1
  • 13
  • 39