I have RHEL 5.8. After every one month or so, server will go into unresponsive state or rejects ssh connections. Somehow, if I can get into server, "free" will show me that 98% of memory is utilized. But when I check processes, I can't see any process which is consuming high memory. I am not sure if it is memory leak and if it is, how to detect/find it.
Below is its current status. It shows 20% of memory is utilized, though I can't find yet, what all processes are using that 20%. Eventually in a month or so, it will climb up.
[root@server2 ~]# watch "ps --sort -rss -eo pid,pmem,rss,vsz,comm | head -16"
Every 2.0s: ps --sort -rss -eo pid,pmem,rss,vsz,comm | head -16 Thu Feb 21 21:46:14 2019
PID %MEM RSS VSZ COMMAND
3812 5.4 443788 443800 ssp_x86Linux_bo
4873 1.1 98028 303884 media_server
5232 0.3 28584 177324 oacore
5561 0.1 16156 100944 hpsensor
5443 0.1 15336 254948 yum-updatesd
5572 0.1 11988 137308 opcmona
3896 0.1 11716 255824 bmserver
3372 0.1 10884 160908 snmpd
5535 0.1 10760 79132 opcmsga
5199 0.1 10388 142188 ovcd
5525 0.1 9580 125692 opcacta
5207 0.1 9568 116444 ovbbccb
3764 0.1 9536 465776 dlgsysmonitorse
5514 0.1 9520 122424 opcmsgi
5465 0.0 8024 43744 ovconfd
[root@server2 ~]# free -m
total used free shared buffers cached
Mem: 7983 1651 6331 0 223 714
-/+ buffers/cache: 712 7270Swap: 9983 0 9983
[root@server2 ~]# free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
Memory Usage: 1651/7983MB (20.68%)
[root@server2 ~]#
Thanks