Use the mod_status module to monitor the apache service, mod_statusapache
Apache service can be monitored using the mod_status module, which is represented as LoadModule status_module modules/mod_status.so in the apache configuration file httpd. conf. Comment out the previous # to load the module. Jump to the end of the configuration file by G and add <location/server-status> SetHandler server-status Order Deny, Allow Deny from nothing Allow from all </location>
ExtendedStatus On
In this way, mod_status is loaded successfully. Enter the URL http: // IP: PORT/server-status to monitor the apache service. The following figure shows the monitoring information displayed on the webpage:
Parameter description:
Field Description: Version of the Apache Server. The time when the Server Built Apache Server is compiled and installed. Current Time the Current system Time. Restart Time the Time when Apache restarts. The Generation number of the Parent Server Generation Apache parent program (Parent process), that is, the number of times that httpd receives SIGHUP and restarts. Server uptime the time that has elapsed since Apache was started. Total accesses: the number of connections received by Apache and the amount of data transferred. CPU Usage current CPU Usage. _ SWSS... the current status of all Apache processes. Each character represents a program, and the status of up to 256 programs can be displayed. Scoreboard Key. The meaning of each character symbol is as follows: * _: waiting for the link. * S: starting. * R: Reading requirement. * W: A response is being sent. * K: Keep online. * D: The DNS is being searched. * C: the link is being closed. * L: The record file is being written. * G: Enter the normal end program. * I: processing is idle. *.: This program does not exist. Srv generation number of the program and its parent program. PID process id of the program. Acc indicates the number of accesses processed by the program and online respectively. M The current state of the program. CPU the CPU resources consumed by the program. The time when the SS was requested by the previous processing. The time required for the last Req processing, measured in 1‰ seconds. Conn The amount of data transmitted online. The amount of data transmitted by the Child Program. The volume of data transmitted by the Slot. The address of the Client. The virtual host or the IP address of the local host. Request information.