• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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

kevang

New Pleskian
I tried to follow the steps in this knowledge base article, but it seems it is not applicable to my Plesk version (12.0). There is no central httpd.conf. I added the configuration lines to /etc/apache2/conf-enabled/security.conf instead. But then going to http://my.server.name/server-status just gives a "Forbidden" error, even if I "Allow from all".

What am I doing wrong?

Is there another way to track down which site/s script/s are generating load?
 
Nope, that's not it. I don't have too many open files, it's the CPU share on my virtual server that is periodically getting too high.

I want to determine which site/s and script/s are causing this, as described in the knowledge base article I linked to (but which unfortunately is not applicable to my Plesk version).
 
Found it: /etc/apache2/mods-enabled/status.conf needs to be edited to allow access from the desired computer.

I also realized that this shows only the current status, thus doesn't really help with finding out which sites or scripts are causing high CPU usage on a regular basis. :( Any tips concerning that?
 
Back
Top