LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-17-2002, 04:19 AM   #1
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
Unhappy 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 :-(
 
Old 09-17-2002, 04:20 AM   #2
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Original Poster
Rep: Reputation: 15
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 ??


Last edited by FredrikN; 09-17-2002 at 04:22 AM.
 
Old 09-17-2002, 08:36 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
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.
 
Old 09-17-2002, 12:20 PM   #4
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Original Poster
Rep: Reputation: 15
Ok, thanks 4 your tips :-)
 
Old 09-17-2002, 03:16 PM   #5
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory leak ? os2 Programming 1 05-19-2005 01:45 PM
Memory Leak?! RoaCh Of DisCor Linux - General 9 05-07-2005 12:26 AM
memory leak mfitzpat Linux - Newbie 1 09-24-2004 02:58 PM
memory leak mdk Mandriva 1 09-17-2004 10:54 AM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration