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
5
votes
0 answers

hibernate environment not set in jconsole

I use hibernate-jconsole-1.0.7.jar to monitor hibernate. But Whenever I run the jar, Jconsole starts with an exception. Here is the Jconsole output, javax.management.InstanceNotFoundException: Hibernate:application=Statistics is not registered. …
5
votes
5 answers

Location of Java dump heap file when using jconsole?

Well this is embarrassing ... I'm starting to play with the Eclipse Memory Analyzer to look for Java memory leaks on a Windows box. Step 1 is to obtain a heap dump file. To do this I start my Java (javaw.exe) process from within Eclipse and…
Jim Ferrans
  • 30,582
  • 12
  • 56
  • 83
5
votes
2 answers

hibernate jconsole spring configuration

I'm struggling to configure hibernate jmx in order to have some metrics with the hibernate jconsole plugin. actually I followed the configuration from the official website of hibernate jconsole plugin:…
Jeremy S.
  • 125
  • 3
  • 9
5
votes
0 answers

How to view contents of EhCache cache in production

A co-worker told me that it might be possible to use JConsole to view the contents of an EhCache cache at any time in production. I'm wondering: is this true, and if so how/why? And more importantly, would merely peeking at the cache's contents…
user1768830
5
votes
1 answer

enable HeapDumpOnOutOfMemoryError in runtime

according to http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/clopts.html it should be possible to enable -XX:+HeapDumpOnOutOfMemoryError using JConsole in runtime. How? I assume its somewhere under MBeans tab and the com.sun.management ->…
Schildmeijer
  • 20,702
  • 12
  • 62
  • 79
5
votes
5 answers

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:
Pavel
  • 1,019
  • 2
  • 10
  • 19
4
votes
5 answers

Can't connect jconsole to remote server, tomcat failing to start

Trying to connect jconsole to a remote server. I added this to my catalina.sh: export JAVA_OPTS="-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9005 \ -Dcom.sun.management.jmxremote.ssl=false \ …
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
4
votes
2 answers

Is there any way to export jconsole monitoring result?

Jconsole is great in monitoring java application through JMX. Once connected and running, it could display the whole Memory/Heap/CPU/Thread history of the monitored program. I just wondering if there is any way to export the result, and then can…
moonese
  • 483
  • 1
  • 6
  • 15
4
votes
1 answer

Jconsole remote Connection Lost: Reconnect?

I'm trying to make a jconsole remote monitoring of my tomcat 9 with java 8 jre (server adress: 192.168.10.3). In tomcat9w i have this java…
XDDDDDD
  • 41
  • 3
4
votes
3 answers

Are JMX CompositeDataSupport attributes always read-only in JConsole?

Following MXBeans in Java SE 6: Bundling Values Without Special JMX Client Configurations I managed to implement a MXBean which exposes a Map for a list of configuration parameters. It appears in JConsole as expected, but all values…
mjn
  • 36,362
  • 28
  • 176
  • 378
4
votes
2 answers

How to connect to an mBeanServer in another local process?

If you set the "com.sun.management.jmxremote" system property when you start a JVM, you can run jconsole or visualvm and connect to that local mBeanServer. I want to do the same thing they are doing but can't figure out how. Is there a service URL…
4
votes
2 answers

jconsole equivalent for .Net?

I'm looking for a DLL you could link to, that will give your .Net app profiling abilities equivalent to jconsole. Specifically, what I imagine is something like this: You add a DLL to your project You call some init method This exposes a set of…
ripper234
  • 222,824
  • 274
  • 634
  • 905
4
votes
5 answers

Strategies for the diagnosis of Java memory issues

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…
Matty
  • 1,973
  • 4
  • 25
  • 29
4
votes
3 answers

Measure thread contention on particular monitor

I'm considering switching from synchronized to a ReadWriteLock. Before doing it, I would like to check if it's worth it. ThreadMXBean and ThreadInfo provide information about overall thread blocked count and time. Those blocks can be caused by…
Konstantin Milyutin
  • 11,946
  • 11
  • 59
  • 85
4
votes
2 answers

Web enabling Java console application's JMX beans

I have built a Java console-based application and exposed key methods via Spring/JMX declarations. Using JConsole, I can invoke these methods but more ideally, I would like to build a management-style web application to provide browser-based access…
Web User
  • 7,438
  • 14
  • 64
  • 92