Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Please help on Tomcat with JMX Options

Thread view: 
Gans - 07 Aug 2007 08:45 GMT
Hi all,

I want to monitor my tomcat 5.5 application server with JMX. I have
study the  sun tutorial to do this. but i am not able to fina a good
tutorial for monitor Tomcat. Can any one help me to guide me how to
configure the JMX for Tomcat application server?

I aplogies if i posetd a wrong news group... Please guide me a
spcific
news group for my doubts.

Thanks to you all...

--Ganesan.
Manish Pandit - 07 Aug 2007 22:20 GMT
> Hi all,
>
[quoted text clipped - 10 lines]
>
> --Ganesan.

Edit catalina.bat (it is in $CATALINA_HOME/bin) and locate JAVA_OPTS
variable. Change it to look like this (you may want to append the
stuff if JAVA_OPTS already has something).

set JAVA_OPTS=-Dcom.sun.management.jmxremote -
Dcom.sun.management.jmxremote.port="9004" -
Dcom.sun.management.jmxremote.authenticate="false" -
Dcom.sun.management.jmxremote.ssl="false"

Save the file, and start tomcat.

Assuming you have JDK5 (not JRE), start jconsole. It should be in
$JDK_HOME/bin.

It will autodetect the JMX connection on local box, so go ahead
connect. Click around the tabs at the top (summary, memory, threads..)
to see the monitoring in action.

Translate the above into *nix if you are not using Windows.

If you want a tutorial on what JMX is, google around and there is
plenty of stuff.

http://java.sun.com/docs/books/tutorial/jmx/index.html

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.