httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Metz <>
Subject [users@httpd] Apache 2 CPU load
Date Fri, 09 May 2003 00:45:10 GMT
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

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!



Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message