Re: Apache killing server by using all swap

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

 



On Mon, 12 May 2008 21:36:20 +0100
Stargazer <stargazer@xxxxxxxxxxxxxxxx> wrote:

> 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

This sounds more like a HACK, rather than a solution.
 
> 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.

750/8 ~ 93M each... that's awfully lot for a httpd child.
Are you sure you're not leaking memory anywhere?

Setting
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#maxrequestsperchild
back to default (usually it's set to 0 == infinite), might show if it's
leaking or not.

Also take a look at http://httpd.apache.org/docs/2.0/misc/perf-tuning.html
 
> I'm really looking for help fixing this, if anyone can I'd be really 
> grateful -
> just ask for whatever logs are needed.

If this doesn't help you, you might want to supply your MPM configuration,
also a listing of the used modules would be a good.
 
> Thanks!
> 
> - John

So long,
Igor

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