HTTP eating up memory I believe....
top - 14:31:53 up 1:57, 1 user, load average: 0.49, 1.10, 1.21Tasks: 101 total, 5 running, 96 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.6% us, 13.6% sy, 51.5% ni, 27.9% id, 0.7% wa, 0.7% hi, 0.0% si
Mem: 1490040k total, 1089360k used, 400680k free, 126996k buffers
Swap: 917496k total, 0k used, 917496k free, 556380k cached
I have 1.5 gigs of ram in my server now, and it seems httpd just keeps eating more and more memory, and not releasing it once it's not needed anymore...
How do I fix this?
I killall -9 httpd; and well the server reboots at using just about 400 mb of ram. After 30 minuntes it's about up to 500-600-mb, and then after 2 hour (shown above) it's using over 1 gig of ram.
Why is this and how do I fix this?
My current httpd.conf settings
Timeout 15
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 30
MinSpareServers 10
MaxSpareServers 15
StartServers 10
MaxClients 150
MaxRequestsPerChild 150
For some reason once the request is finished, it's never dropped or properly closed.
I go to mydomain.com/server-status/ and I refresh, i use ?fds1a56a to load dynamically so it makes sure not to cache in my browser, and well, it shows MANY of the old processes ( shows a max of 92 processes with id's there ) and about 70 of them are always the exact same, never changing and never updating, its like they are not properly closed or finished and released the ram. Or it takes forever for it to relase the process. I just looked for the past 30 minutes or so probably ( just a guess ) and saw a file that is 7 kb in size and VERY rarely accesed, it was showing up in my server-status for like half an hour or so, lol, what's the deal?
Server Version:
Server Built: Feb 4 2006 17:38:09
--------------------------------------------------------------------------------
Current Time: Saturday, 11-Feb-2006 14:35:42 CST
Restart Time: Saturday, 11-Feb-2006 12:38:09 CST
Parent Server Generation: 0
Server uptime: 1 hour 57 minutes 33 seconds
Total accesses: 67953 - Total Traffic: 536.9 MB
CPU Usage: u34.72 s4.26 cu0 cs0 - .553% CPU load
9.63 requests/sec - 77.9 kB/second - 8.1 kB/request
8 requests currently being processed, 31 idle servers
Please help, as this is a very big problem, in another hour i'm going to be out of ram AGAIN and I've got 1.5 gigs of ram and very few processes actually going...