Memory leak - Fresh install DA with Centos 5

mridul

Verified User
Joined
Oct 30, 2009
Messages
7
I've a fresh DA centos install. It is showing signs of memory leak. The available memory is decreasing every minute.

The Data Centre support investigated the issue. They even replaced the RAM and tested. But seems to be some issue with DA.

I did a "./build all d" now and still the problem seems to persist.

Anyone facing this ?
 
More information

I just did a yum update and the used memory jumped from 280xxx to 1219900 and it is still increasing from there.

[root@server ~]# free
total used free shared buffers cached
Mem: 2043048 1219900 823148 0 69544 1034700
-/+ buffers/cache: 115656 1927392
Swap: 4192956 0 4192956

After a minute

[root@server ~]# free
total used free shared buffers cached
Mem: 2043048 1220488 822560 0 69932 1035704
-/+ buffers/cache: 114852 1928196
Swap: 4192956 0 4192956


After couple of more minutes
[root@server ~]# free
total used free shared buffers cached
Mem: 2043048 1220736 822312 0 70040 1035708
-/+ buffers/cache: 114988 1928060
Swap: 4192956 0 4192956

After another minute

[root@server ~]# free
total used free shared buffers cached
Mem: 2043048 1220860 822188 0 70100 1035712
-/+ buffers/cache: 115048 1928000
Swap: 4192956 0 4192956

The top command


Code:
top - 17:32:34 up  1:08,  1 user,  load average: 0.07, 0.05, 0.14
Tasks: 136 total,   1 running, 135 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  0.0%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2043048k total,  1220860k used,   822188k free,    70156k buffers
Swap:  4192956k total,        0k used,  4192956k free,  1035776k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4808 root      15   0  2332 1116  832 R  0.3  0.1   0:00.02 top
    1 root      15   0  2068  612  528 S  0.0  0.0   0:00.63 init
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/1
    6 root      39  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
    9 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/1
   10 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   11 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
   15 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 kblockd/0
   16 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/1
   17 root      18  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   91 root      18  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0
   92 root      19  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/1
   95 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khubd
   97 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  161 root      15   0     0    0    0 S  0.0  0.0   0:00.54 pdflush
  162 root      15   0     0    0    0 S  0.0  0.0   0:00.46 pdflush
  163 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kswapd0
  164 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
  165 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 aio/1
  320 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
  350 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
  351 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 ata/1
  352 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux
  359 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
  360 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_1
  367 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 kstriped
  380 root      10  -5     0    0    0 S  0.0  0.0   0:01.30 kjournald
  407 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kauditd
 1198 root      16  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/0
 1199 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/1
 1200 root      16  -5     0    0    0 S  0.0  0.0   0:00.00 kmpath_handlerd
 1228 root      16  -5     0    0    0 S  0.0  0.0   0:00.00 kjournald
 1866 root      15   0  1720  584  488 S  0.0  0.0   0:00.08 syslogd
 1869 root      15   0  1672  400  332 S  0.0  0.0   0:00.00 klogd
 1907 rpc       15   0  1808  560  468 S  0.0  0.0   0:00.00 portmap
 1990 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 rpciod/0
 1991 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 rpciod/1
 2025 dbus      15   0  2872 1116  828 S  0.0  0.1   0:00.06 dbus-daemon
 2072 root      25   0 12724 1300  548 S  0.0  0.1   0:00.13 pcscd
 2110 root      23   0  1908  448  372 S  0.0  0.0   0:00.00 hidd
 2169 root      15   0  2012  660  504 S  0.0  0.0   0:00.00 dovecot


Another free after about 5 minutes

[root@server ~]# free
total used free shared buffers cached
Mem: 2043048 1221232 821816 0 70912 1035776
-/+ buffers/cache: 114544 1928504
Swap: 4192956 0 4192956

Any help would be greatly appreciated.
 
It doesn't seem like a large memory leak to me, it could just be a program doing legit data collection, anyway... you should install and run "htop", type F6 and choose "RAM". It will show which program is using more RAM, and while "top" is capable of showing it itself "htop" is more clear on the real amount of RAM used and the one cached.
 
Linux should use most of your memory, as mentioned when it goes to swap then you have an issue if it's long term.

Unlike winblows, linux uses the memory if you have it..... :)
 
Back
Top