logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: HTTPD.exe using lots of cpu
Author
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Thu 03 Apr '14 1:43    Post subject: HTTPD.exe using lots of cpu Reply with quote

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

PostPosted: Tue 08 Apr '14 11:58    Post subject: Reply with quote

Did you change anything on the config? Or just upgrading apache?
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Tue 08 Apr '14 12:04    Post subject: Reply with quote

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

PostPosted: Tue 15 Apr '14 14:45    Post subject: Reply with quote

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

PostPosted: Tue 15 Apr '14 17:03    Post subject: Reply with quote

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

PostPosted: Tue 15 Apr '14 21:55    Post subject: Reply with quote

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

PostPosted: Tue 15 Apr '14 22:34    Post subject: Reply with quote

You have turned of the DNS lookup for the log files?
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Tue 15 Apr '14 22:35    Post subject: Reply with quote

Not sure, how can I check this? Embarassed

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

PostPosted: Wed 16 Apr '14 9:19    Post subject: Reply with quote

HostnameLookups Off

DNS lookups take much time.
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Wed 16 Apr '14 14:42    Post subject: Reply with quote

It's already turned off. Confused
Back to top


Reply to topic   Topic: HTTPD.exe using lots of cpu View previous topic :: View next topic
Post new topic   Forum Index -> Apache