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
How can I compile a list of submitted emails to send out a group mailing?Highlight it in Mail > Preferences > Account and click on the "-" tab at the bottom of the list panel.Read other 3 answers [More]
I can't view the pictures I've downloaded from my ipad to my PC. The only options I have is Tunes, TV, Movies or Apps. How do I view pictures on my PC.What happens when you try to play the actual film ? And have you tried deleting them and (assuming [More]
I'm trying to open a file from the JFileChooser and turn the selected file into a BufferedImage and display it in a panel. I've got no issue selecting an image in the file chooser, however when I tell it to create an Image from the selection, it fail [More]
Hi Fellow Abapers, I need to edit a report whereby there is an option to display further fields. Now if they select this option, the report NEEDS to run in the background and output to the file. This will later be retrieved byt the SAP Output Control [More]
Hi All:     I am getting the error "Unable to determine the value of component  ''" and workflows are not getting processed. I found OSS notes 879100 related to this issue but I am new to workflow and not sure where to start from! Here is the no [More]
I'm honestly not sure how it happened! I've been using Photoshop and Illustrator and then I noticed that the writing in the top menu bar was blurred and I couldn't see the dock. I went into preferences and looked at the displays part and the resoluti [More]
I turned the keyboard brightness all the way up and I am in a very dark room but the keyboard is hardly lit.Have to assume you have checked your battery level? Read other 2 answers [More]
Guys, I face this problem while I was installling SAPKINDA7A (PI 2004.1):    Program Terminated: (job: RDDEXECL, no. 21323601)    Execution of programs after import (XPRA) Job log as below:    Job started    Step 001 started (program RDDEXCL, variant [More]
I need an iPad for work, to compose music using an app, and surf the web. I don't plan on saving much music or photos on it and I'm not a video game player. Based on that, do I need any more memory than 16G?16GB vs 32GB vs 64GB: Which new iPad storag [More]
I am working on a cd with interactive menus linked mostly to pdfs. I've converted the pdfs to swf thru flashpaper. I've embedded the file successfully into director. I need the swf to be 1024 x 768 at least but everytime i change the member property [More]