DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

How to Monitor Apache Web Server Load and Page Statistics

January 8, 2018 DbAppWeb Admin

To monitor apache web server load and page statistics we need to configure the server-status module. The Status module allows a server administrator to find out how well their server is performing. An HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser).

Configuration Changes Required to Enable it

  1. Search for the server-status in the /etc/httpd/conf/httpd.conf file and make the changes as given below. Change “.example.com” to the IP address of your system or a system from where you want to monitor the Apache web server load and page statistics.
    [root@dbappweb ~]# vi /etc/httpd/conf/httpd.conf
    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # Change the ".example.com" to match your domain to enable.
    #
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 172.18.33.24
    <Location>
    
  2. Search for the ExtendedStatus in the /etc/httpd/conf/httpd.conf file and make it on if it is off
    [root@dbappweb ~]# vi /etc/httpd/conf/httpd.conf 
    # ExtendedStatus controls whether Apache will generate "full" status
    # information (ExtendedStatus On) or just basic information (ExtendedStatus
    # Off) when the "server-status" handler is called. The default is Off.
    #
    
    ExtendedStatus On
  3. After making these changes in /etc/httpd/conf/httpd.conf file restart or reload the apache service.
    [root@dbappweb ~]# service httpd reload
    Reloading httpd:                                           [  OK  ]
    

    OR

    [root@dbappweb ~]# service httpd restart
    Stopping httpd:                                            [  OK  ]
    Starting httpd:                                            [  OK  ]
    

Monitor Apache Web Server Load and Page Statistics

Access the below URL through your browser to monitor Apache web server load and page statistics where 10.66.26.86 is the IP address of the server. This page gives a simple machine-readable list of the current server state.

  • http://10.66.26.86/server-status

It will show the result as shown below:

Apache Server Status for 10.66.26.86
Server Version: Apache
Server Built: Oct 27 2011 11:52:46
Current Time: Monday, 08-Jan-2018 15:22:09 IST
Restart Time: Sunday, 07-Jan-2018 04:09:13 IST
Parent Server Generation: 1
Server uptime: 1 day 11 hours 12 minutes 55 seconds
Total accesses: 3560004 - Total Traffic: 12.7 GB
CPU Usage: u128.08 s7.08 cu1.18 cs0 - .108% CPU load
28.1 requests/sec - 105.3 kB/second - 3839 B/request
403 requests currently being processed, 47 idle workers
.......R..............R.........................................
CCW_KKK_RRK_WKWKCCCR____K.......................................
KRCRRWKKKRKRRKKWKKCKK_KRR.......................................
KKKK_KRKK__CRKKKRK_KRRKKC.......................................
.....................R..........................................
RRKKRRKKKKWKKRKKKRK_C_CCR.......................................
................................................................
KKKKKKRKRKRRKRKKCCKCRRWKK.......................................
CKRRKRKWKKRKCKKRKKRRRKKK_.......................................
RKKKRWKKKRKC_CKKR_R_RKKRR.......................................
................................................................
................................................................
.................R..............................................
.........R.R........R..RR.......................................
................................................................
..........R.....................................................
KCKKKCCKKCKC_WRRKKKCRWCKK.......................................
................................................................
KKRRRRKRKRRRKCCCKKKKRKKKK.......................................
................................................................
RKKR__KKKKRKRC_RK_WCKKKWK.......................................
................................................................
_K_RKKRRKRRKRKKRRKKRKKKRR.......................................
................R...............................................
RR_KRRKKRKR_KKKRKRRRRCWKC.......................................
................................................................
................................................................
................................................................
................................................................
WR_K_RRR_KKKRR_RR__R_RRKK.......................................
............RR..................................................
................................................................
................................................................
................................................................
................................................................
................................................................
_RKKK_K_RCRKRK_CKRRRKRKCK.......................................
CKCKRKRRRRKWRWRCKRKR_RCCK.......................................
RKRKRR_KKRCKKKCKKC_WRR_RC.......................................
RRWRRCRKR_R_KK_R_KK_RCKKR.......................................
CRKKKKRRKKCRRRKRCRKCKRKRK.......................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

Srv	PID	Acc	M	CPU	SS	Req	Conn	Child	Slot	Client	VHost	Request
0-1	-	0/0/8346	.	0.17	43	20	0.0	0.00	39.62	171.76.229.160	www.dbappweb.com	POST /fcgi/runfrm HTTP/1.1
0-1	-	0/0/8413	.	0.17	37	10	0.0	0.00	32.25	122.163.86.24	www.dbappweb.com	GET /dbappweb/supply/pdfdocs/012018/104460868/viewNitPdf_2143352.p
0-1	-	0/0/8560	.	0.14	40	0	0.0	0.00	37.77	122.163.86.24	www.dbappweb.com	GET /dbappweb/images/common/color_tabs_left.gif HTTP/1.1
0-1	-	0/0/7884	.	0.15	40	8	0.0	0.00	31.96	112.133.244.181	www.dbappweb.com	POST /fcgi/webfrm HTTP/1.1

 

The details given are:

  • The number of worker serving requests
  • The number of idle worker
  • The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
  • A total number of accesses and byte count served (*)
  • The time the server was started/restarted and the time it has been running for
  • Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*)
  • The current percentage CPU used by each worker and in total by all workers combined (*)
  • The current hosts and requests being processed (*)

The lines marked “(*)” are only available if ExtendedStatus is On. In version 2.3.6, loading mod_status will toggle ExtendedStatus On by default.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Next Article
Tags:Apache 2.2.3 Linux Sys Admin Web Server

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com