The steps of the Status page to monitor Tomcat are as follows:

Step 1: Modify the configuration file tomcat-users (which is in the conf folder in the root directory of the Tomcat installation program) and add an admin setting permission. Add the following content to < tomcat-Users > :

<role rolename=”admin-gui”/>

<user username=”admin” password=”1234″ roles=”manager-gui”/>

Step 2 Restart the Tomcat server and enter the URL (http://localhost:8080/) in the browser. For remote access, the URL is http://IP:8080, as shown in the figure.




On the JBoss Management page, there are several ways to monitor Tomcat: Tomcat Status, JMX Console, and JBoss Web Console.

There are three contents about Tomcat status: basic Tomcat status information, all extended Tomcat status information, and Tomcat status information in XML format.

Click the Tomcat Status link to enter the Tomcat Status information page, as shown in the figure.




There are three main parts of the basic information: JVM, HTTP, and JK.

The JVM information is as follows:

Free memory: 30.38 MB Total memory: 65.60 MB Max memory: 506.31 MB

Free memory: Free memory size;

Total memory: The Total memory size.

Max Mermory: Maximum memory size;

JVM Java Virtual Machine (JVM) A Java Virtual Machine consists of a set of bytecode instructions, a set of registers, a stack, a garbage collection heap, and a storage method domain. The JVM masks information specific to a particular operating system platform, allowing Java programs to run unmodified on multiple platforms by generating object code (bytecode) that runs on the Java VIRTUAL machine, and ultimately interpreting bytecode as machine instructions on a particular platform when it executes it.

HTTP information is as follows:

Max threads: 250 Min spare threads: 25 Max spare threads: 75 Current thread count: 10 Current thread busy: 2

Max processing time: 234 ms Processing time: 1 s Request count: 21 Error count: 6 Bytes received: 0.00 MB Bytes sent: 0.02 MB



Max Threads: Maximum number of threads.

Min Spare Threads: Indicates the minimum number of idle threads.

Max Spare Threads: Indicates the maximum number of idle threads.

Current thread Count: indicates the number of threads running recently.

Thread BUSY: indicates the number of running threads.

Max Processing Time: indicates the maximum CPU time.

Processing time: indicates the total CPU consumption time.

Request count: indicates the total number of requests.

Error count: indicates the number of incorrect requests.

Bytes received: Indicates the number of received Bytes.

Bytes sent: Indicates the number of Bytes sent.

There are several scenarios for the request phase:

P: indicates the request to be sent.

S: Indicates that the request is being processed on the server.

F: indicates that the request has been completed.

R: indicates the request to be sent.

K: indicates the current active request.

Jk displays the same information as HTTP. Jk is a module that Apache connects to Tomcat and supports clustering and load balancing.

If you click the full link after Tomcat status, you can display all the detailed information about Tomcat. In addition to the basic information about Tomcat, it also includes the detailed information about some modules, mainly including modules: Localhost /mtours, localhost/qcbin, localhost/ws4ee, localhost/web-console, localhost/ jBOSSMq-Httpil, localhost/ Invoker, localh Ost /sabin, localhost/jmx-console, localhost/.

If you want to view Tomccat information in XML, click the XML link.