LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RH9 Memory Leak (https://www.linuxquestions.org/questions/red-hat-31/rh9-memory-leak-194659/)

Seventh 06-17-2004 01:35 PM

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 :)

benjithegreat98 06-17-2004 04:05 PM

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.


All times are GMT -5. The time now is 01:47 PM.