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
hello friends , I am not publish the report on Bex brod caster ? do i need to do any setting ? i am trying the publish thr analyzer or query designer . Please suggest .Hi Akshay, information broadcasting(IB) screen will only open when you have succes [More]
How do you add a new portion to the beginning of your project without disturbing the rest of the project that already has perfectly place clips attached to beat markers with the music ? I forgot to add a tittle intro before the music starts with the [More]
Hi All, For one of the BCT (busines content) DataSource 2LIS_04_P_MATNR, we notice in our system that the Delta process has been changed from 'ABR' in the delivered version to 'D' in the active version due to which we are not able to have delta loads [More]
Hello Experts, In our present solution, there are frequent master data changes impacting the performance of SNP applications. As per SAP recommendation we are planning to schedule /SAPAPO/TS_LCM_QUEUE_UPDATE program. I wanted to know following if any [More]
Hi, is it possible to use javascript as an attribute value in a JSTL tag, e.g. <fmt:formatNumber value="${some.value}" pattern="javascript:getPattern();" />so that the pattern can be determined in run-time? Thanks.No. Other way i [More]
Hi everybody, Could anybody help me on this : I encountered an error message when I use SQL-Plus 8.0.6 with OCA 8.0.6 and RSF 8.0.6, it said : ORA-00022 : invalid session id; access denied. I heard that the solution is to downgrade the RSF to 8.0.5, [More]
Hi, When I run my application on one machine it works fine. However, when I run it on a second machine ( Class path ok cause the GUI launches ok ) I get the following error when I press a button on the GUI. All classes are in the same package. Any id [More]
We have to devise the stratgey for backup and restore of database which are involed into repliation e.g. master database and snapshot databaseI am sorry, but all of the iPad content is gone now. With no backup, there is no way to retrieve anything. Y [More]
Hi, Just downloaded and installed OBIEE 11.1.1.7.0 from OTN. OS: Windows 2008 Server R2 64 Bit. Install Type: Simple Install Database: 11.2.0.3 Received the following error message in Admin Server log:- [2013-06-22T11:29:46.944+05:30] [AdminServer] [ [More]
Last night I finally tried to install the new iOS4 onto my iPhone 3G. Like most people, it was nothing but problems. I waited over 2 hours for it to backup, before I finally gave in, and stopped it. I tried again thinking something had just glitched [More]