This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Using Tomcat 6 and the APR to monitor Server resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Using Tomcat 6 and the APR to monitor Server resources" Watch "Using Tomcat 6 and the APR to monitor Server resources" New topic
Author

Using Tomcat 6 and the APR to monitor Server resources

Dhana Rengasamy
Greenhorn

Joined: Feb 26, 2010
Posts: 3
Hello, on this page about the apr http://tomcat.apache.org/tomcat-6.0-doc/apr.html it states that it can be used for OS level functionality, also stating that
"OS level statistics on memory usage and CPU usage by the Tomcat process are displayed by the status servlet"

Two questions,

1) are they refering the the server status section of the manager application for this view?

2) Can i call any methods directly that will give me this info, say from a class or servlet as part of a web app to give me the current processor load/memory usage of the server?

Thanks for any help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Tomcat 6 and the APR to monitor Server resources