Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Need help troubleshooting apache/httpd size

Server crashing 1-2 times per week

2:22 am on Jan 3, 2012 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 18, 2008
posts: 73
votes: 0

Greetings all,
I am still learning apache/linux but have been thrown into the role of admin with a virtual dedicated server running one of our websites. The server is running CentOS 5.5 with php 5.1.6 and apache 2.2.3

I am having an issue with the server crashing 2-3 times a week. I have checked the error log and it doesn't show any issues. However, before the server crashes a run of the top command shows heavy swap usage (we have 2GB RAM and 2GB swap). Swap runs out, and server stops responding until reboot. I have tried as a temporary solution setting a cron job to reboot the server every couple of nights, but it still hasn't seemed to have fixed the problem.

One other thing I noticed is that each apache/httpd process seems to take up about 50-60MB each of memory. Our site is a dynamic site running joomla 1.5 (last version of it before 1.6) and mysql 5. (Will have to check on version)

Here are some settings from httpd.conf that I currently have. Any help you could give me in getting started with solving these issues would be most appreciated. Let me know any additional info I could providde and I would be glad to.

(using prefork)
KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5

Startservers 4

MinSpareServers 2

MaxSpareServers 10

ServerLimit 50

MaxClients 25

MaxRequestsPerChild 800