You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kevin Metz <kb...@yahoo.com> on 2003/05/09 02:45:10 UTC

[users@httpd] Apache 2 CPU load

I'm currently running apache 2 (2.0.45) using the
worker module, on a Dual Zeon (2.4gzh)box with 4GB of
memory. Redhat 7.3 is the OS.

I'm trying to serve static content, in this case,
photos. Most are very small, between 5k and 100k.
Photos also get written to the box using a nfs mount.
The server gets about 400 simultanious requests, and
serves over 3 million hits a day.

My current problem is this. Apache starts running, and
the box has a CPU load of around 75%. sometimes top
shows this process 'kswapd' as chewing up almost all
of the CPU. And sometimes not

Now...the odd part. Sometimes, CPU on the box will
drop down to like 5-10% for around 20 mins. Then it
will spike to 50%, then after a few mins, spike to
60%, and after a few more spikes, go back to to
running steady at 60-70%.

The box is NOT swapping to RAM. And with 4GB it well
shouldn't. So, swapping out to RAM isn't the problem
here (unless its swapping to RAM and not reporting it
to top or /proc/swap).

Here's the config file (well...most of it)


ServerLimit 24 

<IfModule worker.c>
StartServers        5 
MaxClients          600
MinSpareThreads     25
MaxSpareThreads     50 
ThreadsPerChild     25
</IfModule>

MaxRequestsPerChild 0

ErrorLog logs/error_log
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 10

#Keep it quiet
ServerTokens Prod

ExpiresActive On
ExpiresDefault "access plus 365 days"  
ExpiresByType image/jpg "access plus 365 days"  


Any help or idea's why the CPU load is so high when it
shouldn't be would be greatly appreciated!

Thanks

Kevin


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org