httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stargazer <starga...@blueyonder.co.uk>
Subject [users@httpd] Apache killing server by using all swap
Date Mon, 12 May 2008 20:36:20 GMT
Hi list, I have a RH server using Plesk with Apache 2.0.54. I can't
upgrade Apache via yum and am very reluctant to try manually
installing a newer version in case it breaks Plesk. The server hosts
about 60 domains and needed a daily restart due to it eating all the memory
then swap, which actually did report a zero free value. After lots of
investigaton I have found this bash script frees up the swap:

ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); 
print `ipcrm sem $a[1]`}'
service httpd restart

I run a 10 minute cron job which checks the value of swap as reported by 
"free -m"
and if it is < 100M triggers this script.

The server has 750M Physical RAM. httpd.conf is the default apart from
whatever Plesk does to it. When I'm low on swap top shows nothing 
obvious in that
theres no single process using the memory, there are usually about 8 
httpd children
using about 2% each.

I'm really looking for help fixing this, if anyone can I'd be really 
grateful -
just ask for whatever logs are needed.

Thanks!

- John


---------------------------------------------------------------------
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


Mime
View raw message