You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ch...@labware.com on 2008/09/29 12:28:59 UTC
Jconsole working without using any extra System property with Tomcat6.0
started using Intellij Idea 7.0
Hi Guys,
I am running tomcat 6.0 which is confgured through
Intellij Idea . My objective was to run Jconsole to see it in action .
Basically I didn't tinker with the catalina.bat file(whatever comes
bundled with Tomcat) at all . Intellij uses the catalina.bat as a startup
and and as shutdown script . So nowhere I set the "
-Dcom.sun.management.jmxremote" parameter that needs to be used in order
to attach the JMX agent to the Java app in order to get some results using
the Jconsole. But when I run tomcat through Intellij Idea and when I start
Jconsole , it is detecting " org.apache.catalina.startup.Bootstrap start "
as one of the local process ....
Who is setting the "-Dcom.sun.management.jmxremote" parameter in my case ?
Please reply .
Regards,
Subhrajyoti
Mobile: +919830079545
Mail: choudhury@labware.com
Web: www.labware.com
LabWare LIMS Solutions - Results Count
RE: Jconsole working without using any extra System property
withTomcat6.0 started using Intellij Idea 7.0
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mark Thomas [mailto:markt@apache.org]
> Subject: Re: Jconsole working without using any extra System
> property withTomcat6.0 started using Intellij Idea 7.0
>
> That does not agree with the docs:
> http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
Note that none of the examples show any value for the plain .jmxremote property (whereas .jmxremote.port, .jmxremote.access, do have values). The table about half way down the page is the only place that mentions true/false for the base property, and it appears to be in error.
Experimentation with Tomcat using -Dcom.sun.management.jmxremote=false shows that the Agent is loaded at startup, and all internal Tomcat MBeans are accessible via local JConsole. LambdaProbe shows that the property in question has a value of false.
> where are you getting your info from? I'd like to read whatever
> source you are reading.
jdk-6u7-fcs-src-b06-linux-10_jun_2008/j2se/src/share/classes/sun/management/Agent.java
If you browse through there, you'll see all the references to the plain .jmxremote property are just for null or non-null; the value string itself is not examined.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Jconsole working without using any extra System property
withTomcat6.0 started using Intellij Idea 7.0
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Caldarale, Charles R
> Subject: RE: Jconsole working without using any extra System
> property withTomcat6.0 started using Intellij Idea 7.0
>
> jdk-6u7-fcs-src-b06-linux-10_jun_2008/j2se/src/share/classes/s
> un/management/Agent.java
>
> If you browse through there, you'll see all the references to
> the plain .jmxremote property are just for null or non-null;
> the value string itself is not examined.
It is a bit disconcerting that there doesn't appear to be any way to actually disable JMX anymore...
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Jconsole working without using any extra System property withTomcat6.0
started using Intellij Idea 7.0
Posted by Mark Thomas <ma...@apache.org>.
Caldarale, Charles R wrote:
>> From: Mark Thomas [mailto:markt@apache.org]
>> Subject: Re: Jconsole working without using any extra System
>> property withTomcat6.0 started using Intellij Idea 7.0
>>
>> No-one. com.sun.management.jmxremote=true by default.
>
> Minor corrections:
>
> 1) The plain com.sun.management.jmxremote does not take a value;
That does not agree with the docs:
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
Given that you are usually right about this sort of stuff where are you
getting your info from? I'd like to read whatever source you are reading.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Jconsole working without using any extra System property
withTomcat6.0 started using Intellij Idea 7.0
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mark Thomas [mailto:markt@apache.org]
> Subject: Re: Jconsole working without using any extra System
> property withTomcat6.0 started using Intellij Idea 7.0
>
> No-one. com.sun.management.jmxremote=true by default.
Minor corrections:
1) The plain com.sun.management.jmxremote does not take a value; =true (or =false or any other setting) does not alter the behavior of JRE components that look at that system property. Only its existence (or non-existence) matters. Most extensions of com.sun.management.jmxremote do take values, such as those for setting port numbers or security.
2) Even in JDK 6, setting com.sun.management.jmxremote enables additional MBean capabilities that are not present when that system property does not exist. In particular, application MBeans are made accessible to JMX programs, such as JConsole. (I believe - but have not verified - that this happens because with con.sun.management.jmxremote set initially, the agent in the target JVM is loaded at startup and is thereby available to monitor MBean registrations; when loaded after startup by JConsole or other JMX program, the agent has missed the MBean registrations.)
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Jconsole working without using any extra System property with Tomcat6.0
started using Intellij Idea 7.0
Posted by Ch...@labware.com.
Thanks Mark .I got my answer in the the following line in the document
mentioned by you:
" In other words, any application that is started in the Java SE 6 HotSpot
VM is detected automatically by JConsole, and does not need to be started
using the above command-line option."
Regards,
Subhrajyoti
Mobile: +919830079545
Mail: choudhury@labware.com
Web: www.labware.com
LabWare LIMS Solutions - Results Count
Mark Thomas <ma...@apache.org>
09/29/2008 04:36 PM
Please respond to
"Tomcat Users List" <us...@tomcat.apache.org>
To
Tomcat Users List <us...@tomcat.apache.org>
cc
Subject
Re: Jconsole working without using any extra System property with
Tomcat6.0 started using Intellij Idea 7.0
Choudhury@labware.com wrote:
> Hi Guys,
> I am running tomcat 6.0 which is confgured through
> Intellij Idea . My objective was to run Jconsole to see it in action .
> Basically I didn't tinker with the catalina.bat file(whatever comes
> bundled with Tomcat) at all . Intellij uses the catalina.bat as a
startup
> and and as shutdown script . So nowhere I set the "
> -Dcom.sun.management.jmxremote" parameter that needs to be used in order
> to attach the JMX agent to the Java app in order to get some results
using
> the Jconsole. But when I run tomcat through Intellij Idea and when I
start
> Jconsole , it is detecting " org.apache.catalina.startup.Bootstrap start
"
> as one of the local process ....
>
> Who is setting the "-Dcom.sun.management.jmxremote" parameter in my case
?
No-one. com.sun.management.jmxremote=true by default. See
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Jconsole working without using any extra System property with
Tomcat6.0 started using Intellij Idea 7.0
Posted by Mark Thomas <ma...@apache.org>.
Choudhury@labware.com wrote:
> Hi Guys,
> I am running tomcat 6.0 which is confgured through
> Intellij Idea . My objective was to run Jconsole to see it in action .
> Basically I didn't tinker with the catalina.bat file(whatever comes
> bundled with Tomcat) at all . Intellij uses the catalina.bat as a startup
> and and as shutdown script . So nowhere I set the "
> -Dcom.sun.management.jmxremote" parameter that needs to be used in order
> to attach the JMX agent to the Java app in order to get some results using
> the Jconsole. But when I run tomcat through Intellij Idea and when I start
> Jconsole , it is detecting " org.apache.catalina.startup.Bootstrap start "
> as one of the local process ....
>
> Who is setting the "-Dcom.sun.management.jmxremote" parameter in my case ?
No-one. com.sun.management.jmxremote=true by default. See
http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org