Author |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Thu 03 Apr '14 1:43 Post subject: HTTPD.exe using lots of cpu |
|
|
I've noticed that since I upgraded from Apache 2.4.7 to 2.4.9 that the cpu usage occasionally spikes to 100%
Website's don't load or load very slowly because of this.
After ending the HTTPD process the server works fine again.
I believe this to be a bug and it usually shows up if the server has been running for over a week. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 08 Apr '14 11:58 Post subject: |
|
|
Did you change anything on the config? Or just upgrading apache? |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Tue 08 Apr '14 12:04 Post subject: |
|
|
I've only upgraded Apache and the modules.
I suspect modsecurity of causing these problems. |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Tue 15 Apr '14 14:45 Post subject: |
|
|
I just noticed it happening again, but after about a minute the cpu usage went back to normal.
My website did load normally this time, so I think this issue might be happening quite often but nobody notices it. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 15 Apr '14 17:03 Post subject: |
|
|
Do you run any 3rd party module like PHP or so? Ever tried to run it over fcgid and look if that helps reduce the problem? |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Tue 15 Apr '14 21:55 Post subject: |
|
|
PHP runs over FCGI already.
I'm not aware of any 3rd party modules which are active.
Strange thing is I have 2 servers with the same config (one in USA and one in EU) and via GEODNS it automatically links to the closest or the one which is online(if one of them is offline).
And the other server doesn't appear to have this problem, at least I haven't noticed it yet but I don't keep a close eye on it. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 15 Apr '14 22:34 Post subject: |
|
|
You have turned of the DNS lookup for the log files? |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Tue 15 Apr '14 22:35 Post subject: |
|
|
Not sure, how can I check this?
Do you mean: HostnameLookups in the httpd.conf? If so its turned off. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 16 Apr '14 9:19 Post subject: |
|
|
HostnameLookups Off
DNS lookups take much time. |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Wed 16 Apr '14 14:42 Post subject: |
|
|
It's already turned off. |
|
Back to top |
|