File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes JMX and Tomcat status Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JMX and Tomcat status" Watch "JMX and Tomcat status" New topic
Author

JMX and Tomcat status

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Hi All,

I need to monitor my tomcat and know its status, i.e if it is running. This would be a Java Application that would ping tomcat.

I know that using a servlet can do the process for me. I would ping the servlet to see if it gives me a response.

Howsoever i dont want to do it that way, I came to know that JMX helps monitor various applications.

Any tips as to how i can achieve know the status of tomcat using JMX .

Thanks in advance


Money for nothing and Java for Free
SCJP, SCWCD
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

JDK1.5 ships with the jConsole app that can bind to the JVM and monitor all of the app's xbeans.

Give that a shot.

Also the Manager app that ships with Tomcat has a server status page which contains a lot of the JMX information.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMX and Tomcat status