Apache is consuming a lot of CPU. How do I find the reason?

Created:

2016-11-16 13:02:18 UTC

Modified:

2017-06-22 15:02:13 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Apache is consuming a lot of CPU. How do I find the reason?

Applicable to:

  • Plesk Onyx for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Resolution

Enable mod_status to check what site/sites generate load:

  1. To enable status reports only for users from the 192.168.5.87 IP add this code to your httpd.conf configuration file:

     ExtendedStatus on
    <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 192.168.5.87
    </Location>
  2. Reload Apache

    # /etc/init.d/apache restart
  3. You can now access server statistics by using a Web browser to access the page http://your.server.name/server-status

Additional information

More information about mod_status you can find on official site: http://httpd.apache.org/docs-2.0/mod/mod_status.html

Have more questions? Submit a request
Please sign in to leave a comment.