• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Apache HIGH cpu load

dommel

New Pleskian
Hi all,

I have a big problem on one of my servers.
This is the box:

Xeon 3Ghz
1 GB memory
FC7
PLESK 3.0
ASL

The cpu is sky high with apache process:

top - 15:42:07 up 7 days, 23:31, 3 users, load average: 4.07, 2.76, 1.70
Tasks: 169 total, 6 running, 161 sleeping, 0 stopped, 2 zombie
Cpu(s): 95.9%us, 3.2%sy, 0.0%ni, 0.8%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 1034628k total, 839676k used, 194952k free, 13572k buffers
Swap: 2031608k total, 153976k used, 1877632k free, 318396k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6872 apache 20 0 97472 66m 9716 S 42 6.6 0:28.32 httpd
6054 apache 20 0 97700 67m 10m S 42 6.7 1:09.60 httpd
5611 apache 20 0 97.9m 71m 12m R 37 7.1 1:04.79 httpd
6408 apache 20 0 98.3m 70m 10m R 36 7.0 0:09.08 httpd
6923 apache 20 0 96964 67m 11m R 34 6.7 0:08.52 httpd

Do you have any suggestions?
The httpd.conf is the same as all the other servers and no problem there.
But the other servers are FC6
Maybe mod_security? ..i dont like shutting him down..
Any help would be great!

Thnx
 
Could be, the older versions of modsec (below 2.5) have problems with a lot of rules. That was why we had stopped developing new rules on gotroot.com for a while. mod_rewrite is also a big performance killer, or any badly written app for that matter.
 
Thnx Atomic for the reply.

I will try to uninstall the mod_sec and see what happens.
Do you have a alternative for mod_sec ? the apllications are after the uninstall not safe anymore.
 
You can use mod_top to debug which domain do a high CPU.
We have on our HOW-TO explained how to install. It is very helpful.
 
The removing of mod_sec made was changing nothing.
Processes are high after a while after apache restart
I think its the joomla sites who made the problem, but on other servers we have no problem at all,
It must be a configuration problem (i think)
lvalics where can i find the howto?
 
Back
Top