I am trying to run a java process and enable remote connections using jconsole. I add the following parameters to the command line (before the main class):
-Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote. authenticate=false
using netstat, I see that the jvm is listening on port 9999:
tcp6 0 0 :::999...
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 -> HotSpotDiagnostic -> Operations -> setVMOptions ?
...
I'm running JBoss 5. I see that memory keep is increasing as time pass.
The number of active threads are increasing. The following stacktrace is taken from an active thread which is one of many threads (These are the threads that are being added as time pass).
What can i learn from the stacktrace? How can I go deeper and have clearer vi...
I am using the JConsole to access my application MBeans and i use the the password.properties file. But as per the Sun's specification this file contains passwords in clear text formats only.
com.sun.management.jmxremote.password.file=<someLocation>/password.properties
Now i would want to encrypt the password and use it for the JMX us...
Hi,
I'm trying to write a small agent to control tomcat, and right now it looks like JMX is the best option for me. Using the manager http service I can see that there are all sorts of neat mbeans registered that give me all the info I need. Only problem is that when I connect to the tomcat instance using jconsole I don't see any of the...
Hi.
Does there exists any JConsole alternative which i could bundle with my app ?
...
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 VisualVM, but I have not been able to find a nice plugin that will let me select an attribute o...
newbie here.
I have a java application and I am working on to monitor that java application. I come to know about the java monitoring and management control using 'JConsole'. It giving a very detailed graphical information about the running java process.
but the thing I am wondering is about the data used to generate the graphs. As in ...
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 about doing this?
...
Dear all,
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 with Tomcat: http://www.informit.com/guides/content.aspx?g=java&seqNum=273 an...
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 display in java console.
Is there any alternative way where I can display messages to the ...
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
...
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 connect to it with jconsole. Then on the jconsole MBeans tab I click the dumpHeap button. The...
Hi all,
I'm trying JConsole to connect to my remote server running WAS 7.0 Appserver.
After googling, i found ways to connect to WAS 7.0. but all the regular tabs in jconsole is disabled.
How do i enable these tabs?
WAS 7.0 is running on IBM J9 VM and jconsole is also running on the same JRE.
Regards
Sathish
...
How to create performance counters that are exposed by jmx and accessed via jconsole?
Say whenever I instantiate a particular object, I increment a counter. I want to expose the counter value so I can view the value in jconsole.
How would I go about doing this?
...
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 to these methods.
Thanks.
Ashwin
...
I'm somewhat familiar with displaying simple data via a JMX MBean using older JDKs. What I'd like to do is have one MBean link to a couple related MBeans, making it nicer for users to access related info. Is there a good, standard way to do that?
I'd like it to work in both the HTML adapter and richer clients like JConsole (i.e. I don't...
Hey Guys,
I have reviewed the previous Jconsole/WAS questions but I need some additional help. When I try and run my script to launch jconsole with Websphere 6.1 (Security enabled) I get this error:
The java class is not found: sun.tools.jconsole.JConsole
This is the script I am running:
echo off
set HOST=localhost
set PORT=13620
...
Hi Guys,
I need to monitor a java application remotely via visualvm. I have added the port (value 5555), ssl and authenticate properties (both false)) in the prop file. It works ok when I start the process via cmdline, I can connect via jconsole/visualvm by specifying the hostname:port.
However it does not connect to the same process ...
I'm trying to implement the solution described here
I have everything configured to where I can see my log changing methods in the JConsole, but when I try to run one of them, I get an error that it can't find that class that contains the methods ("Log4jMBean" as described in the description linked above)
I already had to augment the p...