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
Hi all, How can we change the standard date time stamp from filename_yyyymmdd-hhmmss-mil to filename_yymmdd_hhmmss i.e.,  I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds. I read in the forums that I ha [More]
We are seeing this issue when we want to upgrade from ES(8.2.1) to ES2 - OutofPlace upgrade. DB is been refreshed from ES and migrated to 11gr2, when initiated DB, its failing at 50% with below error. Techstack: ES2/WAS7.0.0.17/Oracle 11gr2/AIX 6.1. [More]
Hello! I am going to format the drive to reinstall the OS, it's time for a full cleaning! I see that I have some options to erase the disk: - Don't erase data - Zero out data - 7-Pass Erase Is there any difference about the performance of the disk be [More]
i have a problem in compiling an RLP example program /* ChipObject and DIO 96 example program */ and i think its a linker error... do i need dll or something to work this out or files in my project are incorrect? Files included in my VC++ project: di [More]
Since upgrading to iTunes 11.0.4, performance of the iTunes store has been horribly slow, taking 5 seconds to register a keystroke and using 100% or more of the CPU. Any idea what's up?Close your iTunes, Go to command Prompt - (Win 7/Vista) - START/A [More]
Well, that's all I know, the WiFi update on my iPad 3rd Gen 16 GB + Cell keeps failing and telling me to retry, any way to solve this issue? Thanks for your help, HannahHello sassy All I can suggest is to continue to try (from time to time).  I updat [More]
Hi, I previously used Kodo 2.4.3. The Eclipse plugin with all it's enhancement tools worked fine. The size of the com.solarmetric.kodo_1.0.0 plugin is 6.75 MB. The Kodo 2.5.4 plugin doesn't work with Eclipse. The size of the com.solarmetric.kodo_1.0. [More]
Hi,       my blackberry curve 8520 froze so I did a battery pull and now it starts to load and then it stops half way. Please help if you can.                                               Thank you              Hi deedee 0317 Welcome to the Communit [More]
Hi, I had to change my mail password on my computer and now cannot access mail on my iPhone. The settings area for iCloud and mail are greyed out and I cannot access them. I have a restrictions passcode in place, but I cannot remember it (have tried [More]
How to create Message Bundle classes(extending JboResourceBundle) for an EO object using Jdeveloper. The ADFToyStoreDemo contains these bundle classes for the EO. However, when I complete create a new EO, I don't get a default Message Bundle class.Do [More]