Find why httpd eats all swap

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

 



Could someone cast an eye over this please - eventually swap fills and the server dies. Its under very light load, a few php sites, some direct html pages, some perl and java.

First the system spec:

[root@master conf]# uname -r
2.6.17-1.2142_FC4smp
[root@master conf]# httpd -version
Server version: Apache/2.0.54
Server built:   Jul 26 2006 11:00:19

Check memory:

[root@master conf]# free -m
            total       used       free     shared    buffers     cached
Mem:           740        732          8          0          6        102
-/+ buffers/cache:        623        117
Swap:         1027        479        548

Ugh! Swapping already...I know how to fix it though, but before I do does this look normal?

[root@master conf]# ps aux | grep httpd

root 12308 0.0 1.0 40396 8068 ? Ss 05:17 0:00 /usr/sbin/httpd root 12316 0.0 0.1 27344 1364 ? S 05:17 0:00 /usr/sbin/httpd apache 12317 0.0 5.2 165640 39724 ? S 05:17 0:17 /usr/sbin/httpd apache 12318 0.0 5.4 167080 41508 ? S 05:17 0:20 /usr/sbin/httpd apache 12319 0.0 6.1 166944 46832 ? S 05:17 0:18 /usr/sbin/httpd apache 12320 0.0 6.0 167876 45668 ? S 05:17 0:16 /usr/sbin/httpd apache 12321 0.0 5.6 170532 43212 ? S 05:17 0:16 /usr/sbin/httpd apache 12322 0.0 5.4 157364 41668 ? S 05:17 0:18 /usr/sbin/httpd apache 12323 0.0 7.2 175876 54704 ? S 05:17 0:15 /usr/sbin/httpd apache 12324 0.0 5.6 165480 42580 ? S 05:17 0:17 /usr/sbin/httpd apache 17780 0.0 5.7 147496 43644 ? S 07:00 0:16 /usr/sbin/httpd
root     11529  0.0  0.0   3948   600 pts/0    R+   14:54   0:00 grep httpd

httpd is taking 53% of RAM Alright lets free some up:

[root@master conf]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Check again:

[root@master conf]# free -m
            total       used       free     shared    buffers     cached
Mem:           740        409        330          0          7        110
-/+ buffers/cache:        292        448
Swap:         1027        280        747

Bingo! Restarting httpd had a big effect on swap. I would love to know exactly what those httpd children were doing - is there an easy way to tell please?

Thanks

--
--------------------------
http://www.phonewebcam.com
john.steel@xxxxxxxxxxxxxxx


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