LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2007, 08:46 AM   #1
vegas35
LQ Newbie
 
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
memory leak?


Greetings,

I have a question regarding a possible memory leak on SuSE 9. My SuSE 9 server's used memory steadily increases from around 87MB right after reboot to around 580MB within a day or two. It stays at 580 consistently thereafter. When I do a "top", sorted by %MEM, I don't see anything hogging the memory. Are there other tools available that will show me what's using all the memory?

Here's some info from the server:

Code:
[root@srv03: ~ ]
$ uname -a
Linux srv03 2.4.21-243-athlon #1 Thu Aug 12 15:24:15 UTC 2004 i686 athlon i386 GNU/Linux

****************************************
TOP OUTPUT AFTER SERVER UP 2 DAYS...
****************************************

[root@srv03: ~ ]
$ top -b -n 1|more
top - 06:42:47 up 14:18,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  46 total,   1 running,  44 sleeping,   0 stopped,   1 zombie
Cpu(s):   0.0% user,   0.1% system,   0.0% nice,  99.9% idle
Mem:    741408k total,   579128k used,   162280k free,   263644k buffers
Swap:  1050800k total,        0k used,  1050800k free,    97076k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
11688 root      15   0  2872 2872 2568 S  0.0  0.4   0:00.12 smbd
 1727 root      15   0  2336 2336 2164 S  0.0  0.3   0:00.03 smbd
14139 root      15   0  2064 2064 1840 S  0.0  0.3   0:00.25 sshd
 1383 root      15   0  1780 1780 1228 S  0.0  0.2   0:00.10 nmbd
14140 mb        15   0  1712 1712 1292 S  0.0  0.2   0:00.10 bash
 1390 root      15   0  1644 1644 1512 S  0.0  0.2   0:00.24 sshd
14944 root      16   0  1644 1644 1224 S  0.0  0.2   0:00.04 bash
  890 root      15   0  1412 1412  468 S  0.0  0.2   0:00.08 klogd
 1704 postfix   15   0  1404 1404 1140 S  0.0  0.2   0:00.10 qmgr
 1700 root      15   0  1352 1352 1100 S  0.0  0.2   0:00.15 master
14268 postfix   15   0  1352 1352 1100 S  0.0  0.2   0:00.02 pickup
14943 root      16   0  1148 1148  840 S  0.0  0.2   0:00.02 su
 1602 root      15   0   868  868  732 S  0.0  0.1   0:00.02 xinetd
14996 root      16   0   840  840  676 R  2.0  0.1   0:00.02 top

***************************************
TOP OUTPUT SHORTLY AFTER A REBOOT
***************************************

$ top -b -n 1
top - 09:22:56 up 6 min,  1 user,  load average: 0.03, 0.06, 0.03
Tasks:  42 total,   1 running,  40 sleeping,   0 stopped,   1 zombie
Cpu(s):   1.7% user,   2.3% system,   0.0% nice,  96.0% idle
Mem:    741408k total,    65936k used,   675472k free,    15152k buffers
Swap:  1050800k total,        0k used,  1050800k free,    18608k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1726 root      16   0  2336 2336 1696 S  0.0  0.3   0:00.01 smbd
 1967 root      15   0  2064 2064 1840 S  0.0  0.3   0:00.03 sshd
 1383 root      15   0  1776 1776 1224 S  0.0  0.2   0:00.02 nmbd
 1968 mb        15   0  1688 1688 1276 S  0.0  0.2   0:00.04 bash
 1390 root      15   0  1644 1644 1512 S  0.0  0.2   0:00.12 sshd
  890 root      15   0  1412 1412  468 S  0.0  0.2   0:00.08 klogd
 1700 root      15   0  1352 1352 1100 S  0.0  0.2   0:00.02 master
 1705 postfix   15   0  1352 1352 1104 S  0.0  0.2   0:00.02 qmgr
 1704 postfix   15   0  1324 1324 1088 S  0.0  0.2   0:00.02 pickup
 1602 root      15   0   868  868  732 S  0.0  0.1   0:00.02 xinetd
 1989 mb        16   0   836  836  676 R  0.0  0.1   0:00.02 top
Thanks for any help!

Last edited by vegas35; 11-03-2007 at 11:25 AM. Reason: update server info
 
Old 11-03-2007, 04:12 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
You have 263MB buffers & 97MB cache - probably by some program reading or writing something - which will be freed as soon as any application needs them. Linux tries to cach e as much as possible, until that ram is needed. That amount should not increase after a few days.
 
Old 11-03-2007, 04:29 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Since you say that the usage peaks and then stabilises it doesn't sound like you're having a problem - it sounds normal. There's an article at http://gentoo-wiki.com/FAQ_Linux_Memory_Management which gives a useful overview of memory management under Linux.
 
  


Reply

Tags
leak, memory, suse


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Leak?! RoaCh Of DisCor Linux - General 9 05-07-2005 01:26 AM
Possible Memory Leak liquidcool Linux - General 3 10-07-2004 09:38 AM
memory leak mfitzpat Linux - Newbie 1 09-24-2004 03:58 PM
Memory Leak don_dimo Linux - General 7 03-06-2004 07:51 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration