Apache killing server by using all swap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux