How to track which site is using the apache processes and causing load


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Apache Related Information

How to track which site is using the apache processes and causing loadLast Modified: Aug 19, 2012, 11:37 pm
If you're running apache 2.x with custombuild, then it's already in the file:

/etc/httpd/conf/extra/httpd-info.conf


Change the "Allow from" lines to include your IP (eg: 1.2.3.4), OR remove the line completely to allow from all.

<Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 1.2.3.4
</Location>

OR

<Location /secret-server-status>
        SetHandler server-status
</Location>

Change the /server-status to something hard-to guess if you use the 2nd method, since we don't want just anyone viewing this page.

Also change uncomment the #ExtendedStatus by removing the # character:

ExtendedStatus On







For apache 1.3, edit your /etc/httpd/conf/httpd.conf and add

ExtendedStatus On
<Location /httpd-status>
SetHandler server-status
</Location>

just after the code that says "ServerSignature On".   Save, exit, then restart apache.  You can access the stats page by going to http://1.2.3.4/httpd-status where 1.2.3.4 is your server's IP.

 
Related Helpfiles
I'm being attacked by a slow-loris attack
How to track MySQL Load
I'm seeing a lot of localhost VHost entires on my server-status page
Search engine crawlers are increasing my system load
How to track which site is using the nginx processes and causing load

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST