Sitemap

Amicuk Programming Answers

How does jconsole know of all monitored JVMs in system?

-0001-11-30   Views:0

Advertisement

When you run jconsole, the tab named "local" lists JVMs running and their PIDs. By what mechanism is it able to 'know' which JVMs are running that have been started with the arguments that enable JMX management? Does jconsole connect to JVMs or

When you run jconsole, the tab named "local" lists JVMs running and their PIDs. By what mechanism is it able to 'know' which JVMs are running that have been started with the arguments that enable JMX management?
Does jconsole connect to JVMs or to MBeanServers? (Assume each JVM has multiple MBeanServers, and each MBeanServer has multiple domains.)
Also, what's the difference between using the 'remote' and 'advanced' tabs to connect to a JVM? They both have usernames and passwords, but while the 'remote' tab has a host and port, the 'advanced' tab has a URL that contains a host and port within it. So what's the difference - when would you pick one method of connection over another?
Thanks.

The replay answer
Advertisement
If jconsole connects to MBeanServers rather than
JVMs, then how can it tell the difference between
multiple MBeanServers that have been started by a
single JVM?JConsole connects to a given JMX connector server which is associated with a given MBeanServer at creation time.
For example, if I have a simple application (i.e. one
JVM) that starts up two MBeanServers in its main
method, using
MBeanServerFactory.createMBeanServer(name). To start
the application, you run the JVM with the
com.sun.management.jmxremote and
com.sun.management.jmxremote.port variables.
How will jconsole know to differentiate between the
two MBeanServers? After all, there's only one JVM -
and it's been started with only one port number.In your example JConsole will not see any of your MBeanServers. It'll see the platform MBeanServer which is the one used by the out-of-the-box management agent.
The next question I have is regarding the JVM - does
any JVM that's started locally show up in the "local"
tab of JConsole (because the JVM is always
instrumented by default - true?), or does it only
appear if you run it with the
com.sun.management.jmxremote variable?The new Attach API in JDK 6 allows JConsole 6 to show all the JVMs running on the local machine although you will only be able to connect to the ones running on JDK 6 (and JDK 5.0 if started with the com.sun.management.jmxremote or com.sun.management.jmxremote.port system properties).
JConsole 5 only shows the JVMs running on JDK 5.0 and started with the com.sun.management.jmxremote or com.sun.management.jmxremote.port system properties.
Have a look at the link below for more detailed info:
http://java.sun.com/javase/6/docs/technotes/guides/management/index.html
Regards,
Luis-Miguel Alventosa
Java SE JMX/JConsole development team
Sun Microsystems, Inc.
http://blogs.sun.com/lmalventosa/

Go to See the other 8 answers

How does jconsole know of all monitored JVMs in system?

Category:DefaultRelease time:-0001-11-30Views:130

When you run jconsole, the tab named "local" lists JVMs running and their PIDs. By what mechanism is it able to 'know' which JVMs are running that have been started with the arguments that enable JMX management? Does jconsole connect to JVMs or[More]

Monitoring JVM

Category:DefaultRelease time:-0001-11-30Views:130

Hei, We are a group of students who work on a project for a company. We are trying to monitor JVM using java plungins in a munin server. The problem is tha values that we get are non changable even if we load our JVM, in contrary of the JConsole, all[More]

Monitor JVM on AIX box

Category:DefaultRelease time:-0001-11-30Views:130

How to monitor JVM usage on a particulat time.( other than NWA charts ). at OS level. System is PI 7.0 Thanks SskI think you can use Jconsole (Never had the need to use it myself) http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html Reg[More]

Working wlst script on weblogic 10.3 for monitoring jvm,jdbc,serverstate,et

Category:DefaultRelease time:-0001-11-30Views:130

H team, please provide me working wlst script on weblogic 10.3 on for monitoring jvm,jdbc,server state, threads, etc. UNIX OS: solaris X86 email id: [email protected] thanks suryaH team, please provide me working wlst script on weblogic 10.3 on for m[More]

Monitoring JVM in 11i

Category:DefaultRelease time:-0001-11-30Views:130

Hi Friends , We are on 11.5.10.2 running on RHEL 5, we have recently migrated to linux from windows 2003 server, now we are facing java.lang.OutOfMemoryError errors in Apache . please help in finding a tool to monitor JVMs on 11i system. Thanks Raghu[More]

Monitor JVM on AIX

Category:DefaultRelease time:-0001-11-30Views:130

How to monitor JVM on AIX box?Hello Nwuser8880 I have moved this thread to the Netweaver Administrator forum (this is not a PI technical issue). I think you have a better chance of getting a quality answer to your query in the Netweaver Administrator[More]

I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

Category:DefaultRelease time:2015-10-11Views:130

I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?connect, then in SystemPreferences/Displays you can set the two as you want.Read other 2 answers[More]

System Monitoring for Satellite System in Solution Manager

Category:DefaultRelease time:2015-10-11Views:130

Hi,   I configured satellite system in solution manager through SMSY,and i created solution in dswp.I want to configure system monitoring through ccms agent,how to install ccms agent,how to configure system monitoring for satellite system in solution[More]

What are Microsoft- or other's-best practice or recommendation of Disk usage, CPU usage, memory usage monitoring to prevent system trouble ?

Category:DefaultRelease time:-0001-11-30Views:130

We use win2003,win2008,win2012 servers. I heard somewhere that Microsoft recommendation threshold of disk usage monitoring is ( free disk space >= 15- 20 %) , if I remember correctly, but how about CPU usage and memory usage monitoring ?  What are  M[More]

Rule based monitors (RZ20) - Show system availability for selected systems

Category:DefaultRelease time:-0001-11-30Views:130

Hi experts, I'm new with CCMS monitoring and need an advice for rule based monitors. I want to create three alert monitors (RZ20). One for our developing systems, one for our quality assurance systems and one to monitor our production systems. For th[More]

I would like to known the cost of monitoring on-line system

Category:DefaultRelease time:-0001-11-30Views:130

I have a monitoring on-line system with the following features: aquisition of 8 temperature channels and 6 vibration channels, storing data in databases,transmission on protocol TCP/IP, alarms etc... But I do not known the cost of that systems in the[More]

Hot
Can anyone give me some pointers on generating a Spotlight saved search/Smart Folder under Leopard that will give me all applications NOT opened in a given time period (say one month)? I can do Kind:Application and Last Opened:before a given date (1 [More]
Hi All Experts, In Employee Self Service i am Getting this Error,overview page is also not displayed. The initial exception that caused the request to fail, was:    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: ComponentUsage(FPMConfig [More]
hello, i am a new user on this forum (and a bit of a mac newbie too). yesterday my macbook (purchased july 2007) decided to give up on me. we attempted various re-booting options but to no avail. clicking noises from the hard drive while i do have a [More]
If you zoom the image using shortcuts (ctrl/cmd+ and ctrl/cmd-, the rulers resize with the image. But if you use scrubby zooming they stay with the window and it's only by hitting ctrl/cmd-R twice that they reset correctly.This problem goes WAYYY bac [More]
Hi, After the execution of my abap report sap returns to the selection options screen in which all the selected values from the run are still mentioned. How can i refresh the selection screen (so no values in the selection options after the report ru [More]
Why do I get an error when I make an in app purchaseiTunes Store <[email protected]> in case you need it.Read other 3 answers [More]
I have an intensity image that displays correctly, but is rotated 45 degrees.  I have messed around in LabVIEW trying to get it to display correctly, but have ran out of ideas.  How would I go about manipulating the matrix of data in LabVIEW to rotat [More]
Hi, I am starting to mess with jstl. I was wondering if there is a "request.getRequestURL() " equivalent in JSTL. I have been messing with the implicit objects and do not seem to be able to find the url information in there. I can manually put t [More]
My Rebel T3 seems to have problem auto-focusing indoors when using the digital display .  Seems to work fine using the viewfinder.Live View focusing is always going to be very slow.  It is not just your camera. Scott Canon 6D, Canon T3i, EF 70-200mm [More]
I recently switched my Dreamweaver MX 2004 over to my new MacBook (OS 10.5.4). I am able to connect to the server, but the files will not upload (put). The files appear to be uploading, (i.e. message box says that files are loading) but nothing comes [More]