Page 1 of 1

Apache (httpd.exe) Extremely High Processing

PostPosted: 06. November 2014 03:59
by zardiw
Hey.....

On occasion Apache will go into extremely high processing mode.......and then settle back down to normal.

I'm running XAMPP on a Win XP SP3 machine. 500MB Ram

I have one PHP program that uses Curl to periodically check a website for changes every 3 minutes or so.

There is some semi intense processing/parsing of pages from that website.

I also use PHP Sleep (for one second) between requests to the site for sub pages to avoid overloading that site.

That is the only purpose of the server.

I do not want to serve anything to the web at large.

Are there settings that I can add/change (like possibly KeepAlive) that will optimize Apache for the above stated purpose?

And any ideas as to why it is going into High Overdirve Mode at times? (Using Process Explorer which shows the high CPU usage)

Appreciate any help here.

z

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 06. November 2014 11:21
by Nobbie
I cant find a problem, CPUs are made for processing? Is there any severe issue, or only a "feeling"?

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 06. November 2014 14:47
by JJ_Tagy
Sounds like a script issue. Maybe filling memory buffer with enormous amounts of data. Perhaps the site you are pulling from has some hidden redirects, includes, etc. that aren't accounted for. Try letting your system run for the same time with/without the script to see if there is any change.

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 06. November 2014 15:22
by zardiw
If I run the script through a browser, the browser shows no excessive processing........it's the httpd.exe that shows very high processing........It's not the script......it's Apache.

z

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 06. November 2014 15:23
by zardiw
The only thing Apache is doing is getting the pages.........why would that lead to high processing? These are simple web pages.....no large images/javascript or anything like that.......

Could it be the php sleep function?

.....z

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 06. November 2014 16:31
by zardiw
JJ_Tagy wrote:Sounds like a script issue. Maybe filling memory buffer with enormous amounts of data. Perhaps the site you are pulling from has some hidden redirects, includes, etc. that aren't accounted for. Try letting your system run for the same time with/without the script to see if there is any change.


This is a possibility.......filling up RAM and having to continually swap out Apache and the script.

Currently have 512 Ram on this computer.

Going to increase it to 1G and see if that solves the problem

z

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 10. November 2014 18:38
by zardiw
Unless somebody has some other ideas....... What about Keep Alive of a few seconds? .......After reading the main page, the program reads any other pages that are linked in the main page........to check for changes.......z

Re: Apache (httpd.exe) Extremely High Processing

PostPosted: 24. November 2014 03:03
by zardiw
Just increased RAM to 1G ............it's still doing it, so lack of Memory is not the problem............

z