LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-17-2004, 01:35 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
RH9 Memory Leak


My server runs at about 95%+ memory usage after a short time, and I've no idea why.

Here's the results of:

Top:

Code:
 14:33:41  up 18:31,  1 user,  load average: 0.86, 0.88, 0.83
91 processes: 90 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:   2.1% user   0.3% system    0.0% nice   0.0% iowait  97.0% idle
CPU1 states:  12.4% user   1.0% system    0.0% nice   0.0% iowait  85.4% idle
Mem:  1025160k av, 1009440k used,   15720k free,       0k shrd,   71384k buff
       176960k active,             770644k inactive
Swap:  787176k av,    1864k used,  785312k free                  703004k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
 1252 root       9   0  7784 7540  7460 S    14.7  0.7   4:04   0 httpd
17558 u3635007  11   0  1152 1152   868 R     0.5  0.1   0:00   1 top
 1136 mysql      9   0 14104  13M  2444 S     0.1  1.3   0:56   0 mysqld
    1 root       8   0   476  476   424 S     0.0  0.0   0:06   1 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:00   1 keventd
    3 root      19  19     0    0     0 SWN   0.0  0.0   0:00   0 ksoftirqd_CPU
    4 root      19  19     0    0     0 SWN   0.0  0.0   0:00   1 ksoftirqd_CPU
    5 root       9   0     0    0     0 SW    0.0  0.0   0:01   0 kswapd
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 bdflush
    7 root       9   0     0    0     0 SW    0.0  0.0   0:02   0 kupdated
    8 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 pagebufd
    9 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 xfslogd/0
   10 root       9   0     0    0     0 SW    0.0  0.0   0:00   1 xfslogd/1
   11 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 xfsdatad/0
   12 root       9   0     0    0     0 SW    0.0  0.0   0:00   1 xfsdatad/1
   14 root       9   0     0    0     0 SW    0.0  0.0   0:09   0 kjournald
Free:

Code:
-sh-2.05b$ free
             total       used       free     shared    buffers     cached
Mem:       1025160    1009720      15440          0      71384     703048
-/+ buffers/cache:     235288     789872
Swap:       787176       1864     785312
-sh-2.05b$
And vmstat:

Code:
-sh-2.05b$ vmstat
   procs                      memory      swap          io     system      cpu
 r  b  w   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id
 0  0  1   1864  14560  71388 703160    0    0     4    33  129   128 13  3 85
-sh-2.05b$
Redhat 9. Thanks
 
Old 06-17-2004, 04:05 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
This is because of your buffers and cache

Code:
-sh-2.05b$ free
             total       used       free     shared    buffers     cached
Mem:       1025160    1009720      15440          0      71384     703048
-/+ buffers/cache:     235288     789872
Swap:       787176       1864     785312
total 1025160
used 1009720
free 15440

of the used:
buffers 71384
cached 703048

so basically almost 3/4 of your memory is buffers and cache. Nothing to worry about. This is just the way that Linux uses memory. As more memory is required the buffers and cache are taken out.
 
  


Reply



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?! nyk Programming 10 01-24-2005 07:08 PM
Memory Leak don_dimo Linux - General 7 03-06-2004 06:51 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM
Memory hole/leak in RH9? mrogers Linux - Newbie 2 09-23-2003 08:07 PM
Memory Leak FredrikN Linux - General 4 09-17-2002 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:09 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