Memory Leak
Hi
I have a big problem. My serve is leaking a lot of memory I have 384MB of RAM The server consumes this memory in 24H and then i crashes. Sure , I can kill a process and it will free some memory , but the new released memory will also be used and then it crashes again. Seems strange to me, does anyone know how I can fix this problem ?? I do not want to use cron to restart the server every night :-( |
The ps or top doesn't show me anything strange either
Is there a way to find out where the memory is used ?? 384MB in 1 day ?? |
For a global view you can use periodically dumping output from free, (at)sar/sa. Finer grained stats you could gain from lsof, (a)top, or ps (like /bin/ps ax -eo vsz,pid,args) but then you would have to transmogrify the data a bit. I like atop, because it can also show VM in/decreases per app.
Any finer grained and you're at the level where you would zoom in on suspects, test different configs, assess add-ons (like httpd cgi's) or use a preloaded lib or binary recompiled with a debugging lib like dmalloc. |
Ok, thanks 4 your tips :-)
|
You might also check on whether 1. swap was configured on installation, #2 whether you have a swap line in /etc/fstab, 3. is the swap actually in use. As far as item item 3 is concerned, when I installed my system, although a swap space was configured, swapon was never called on boot to turn it on, so I was running without a swap. Hope this helps. -mk
|
All times are GMT -5. The time now is 07:13 PM. |