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

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.
Author: Stephen Withrow

Stephen has over 30 years of experience in training, development, and consulting in a variety of technology areas including Python, Java, C, C++, XML, JavaScript, Tomcat, JBoss, Oracle, and DB2. His background includes design and implementation of business solutions on client/server, Web, and enterprise platforms. Stephen has a degree in Computer Science and Physics from Florida State University.

About Webucator

Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.