How to Check the Status of the Apache Tomcat Server (Linux)

See Apache: Tips and Tricks for similar articles.

Monitoring the JVM is an important part of administering the Apache Tomcat server. The Tomcat manager provides a quick way to check our server's status by displaying how many HTTP threads are active, the storage allocation in the various memory pools plus other helpful data.

To learn how to check the status of the Apache Tomcat Server, follow these 6 steps:

  1. Start the Tomcat server.
  2. You'll need to create credentials to access the Tomcat manager. The instructions for setting up a user name and password were contained in Steps 2, 3, and 4 in the topic Click here to learn how to deploy a Web Application Using Apache Tomcat Manager (Linux). You will need to restart the Tomcat server after completing the steps in that topic.
  3. In the address area of your browser, type http://localhost:8080/manager/html and submit that address to the browser.
  4. You will be challenged for credentials. Provide the user name and password you specified in tomcat-users.xml (make sure to provide the correct spelling and case): Manager credentials Click OK
  5. The manager web page contains a link to the server status portion of the web page: Manager link to server status Click the Server Status link.
  6. The server status area is displayed: Manager server status The "Server Information" panel displays a summary of your environment. The data that follows shows you the storage acquisition in the various memory pools and the thread usage for network communications by connector (e.g., HTTP). Monitoring this data over time will give you a good feeling for the resource consumption of your Tomcat server and may indicate the need to adjust JVM parameters and/or thread attribute values on the Connector element of server.xml.

Related Articles

  1. How to Start and Stop Apache Tomcat from the Command Line (Windows)
  2. How to Deploy a WAR File to Apache Tomcat (Windows)
  3. How to Start and Stop Apache Tomcat from the Command Line (Linux)
  4. How to Deploy a WAR File to Apache Tomcat (Linux)
  5. How to Run a JSP Program in Apache Tomcat (Windows)
  6. How to Check the Status of the Apache Tomcat Server (Windows)
  7. How to Deploy a Web Application Using the Apache Tomcat Manager (Windows)
  8. How to Check the Status of the Apache Tomcat Server (Linux) (this article)
  9. How to Set Default Context Path in Apache Tomcat (Windows)
  10. How to Use the autoDeploy Attribute in Apache Tomcat (Windows)
  11. How to Deploy a Web Application Using the Apache Tomcat Manager (Linux)
  12. How to List Deployed Applications Using the Apache Tomcat Manager (Windows)
  13. How to Run Multiple Instances of Apache Tomcat on One Server (Windows)
  14. How to Run a JSP Program in Apache Tomcat (Linux)
  15. How to Establish a JDBC Connection in Apache Tomcat (Windows)
  16. How to Verify Apache Tomcat Server Operation (Windows)
  17. How to Cluster in Apache Tomcat (Linux)
  18. How to Undeploy Web Applications Using the Apache Tomcat Manager (Windows)
  19. How to Set Default Context Path in Apache Tomcat (Linux)
  20. How to Use the Java Logging API in Apache Tomcat (Windows)
  21. How to Cluster in Apache Tomcat (Windows)
  22. How to Use the Java Logging API in Apache Tomcat (Linux)
  23. How to Use the autoDeploy Attribute in Apache Tomcat (Linux)
  24. How to Configure Apache Tomcat to Use MBeans (Windows)
  25. How to List Deployed Applications Using the Apache Tomcat Manager (Linux)
  26. How to Install and Configure Apache Tomcat (Windows)
  27. How to Configure Apache Tomcat to Use MBeans (Linux)