homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Need help troubleshooting apache/httpd size
Server crashing 1-2 times per week

5+ Year Member

Msg#: 4403069 posted 2:22 am on Jan 3, 2012 (gmt 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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved