LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-05-2008, 02:10 PM   #1
samiralmousawi
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Rep: Reputation: 0
High memory usage. Is there Zombie that I can't see


I have posted a related question and got useful information but never THE answer to my problem. I will give background to the problem:


-We have Java (jdk 1.5) application processes running on Linux Redhat. 8GB of RAM
-Using the 'top' command, we keep monitoring the server.
-Memory Usage shows 'normal' levels after reboot of the server and startup of the application processes. I put a dump below of 'top' command when system is in 'healthy' state
-Memory keeps incrementing until it reaches almost 100% usage (8GB usage). I put a dump when system is in 'unhealthy' state
-As you can be seen in the 'top' dump, Java processes are taking up ONLY around 4.5 GB. What else is consuming the rest?

-When I calculate the total of 'VIRT' column in 'top' command in both cases (when system is healthy and unhealthy, I get similar results)

-Dilema: if java processes are taking only 4.5 GB, what else is using the rest



'top' command output when system is 'unhealthy':
====
top - 20:16:29 up 22:04, 5 users, load average: 0.06, 0.08, 0.05
Tasks: 144 total, 1 running, 143 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.8% us, 0.2% sy, 0.0% ni, 97.6% id, 0.4% wa, 0.0% hi, 0.1% si
Mem: 8164332k total, 8059596k used, 104736k free, 338772k buffers
Swap: 16777208k total, 0k used, 16777208k free, 5736756k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18484 www 15 0 6144 952 696 R 4 0.0 0:00.02 top
1 root 16 0 4752 556 460 S 0 0.0 0:01.92 init
2 root RT 0 0 0 0 S 0 0.0 0:00.03 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.04 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 0:00.03 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 0:00.01 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
10 root 5 -10 0 0 0 S 0 0.0 0:00.05 events/0
..
13 root 5 -10 0 0 0 S 0 0.0 0:00.03 events/3
14 root 5 -10 0 0 0 S 0 0.0 0:00.00 khelper
15 root 15 -10 0 0 0 S 0 0.0 0:00.00 kacpid
70 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/0
71 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/1
72 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/2
73 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/3
74 root 15 0 0 0 0 S 0 0.0 0:00.12 khubd
101 root 20 0 0 0 0 S 0 0.0 0:00.00 pdflush
102 root 15 0 0 0 0 S 0 0.0 0:01.19 pdflush
105 root 12 -10 0 0 0 S 0 0.0 0:00.00 aio/0
103 root 15 0 0 0 0 S 0 0.0 0:00.13 kswapd1
104 root 15 0 0 0 0 S 0 0.0 0:00.31 kswapd0
..
252 root 23 0 0 0 0 S 0 0.0 0:00.00 kseriod
400 root 8 -10 0 0 0 S 0 0.0 0:00.00 kmirrord
423 root 15 0 0 0 0 S 0 0.0 0:00.45 kjournald
1692 root 6 -10 3604 448 364 S 0 0.0 0:00.01 udevd
2335 root 6 -10 0 0 0 S 0 0.0 0:00.00 kauditd
2473 root 15 0 0 0 0 S 0 0.0 0:00.00 emcpd
2474 root 15 0 0 0 0 S 0 0.0 0:00.00 emcpdefd
2475 root 19 0 0 0 0 S 0 0.0 0:00.00 emcprequestd
2648 root 19 0 0 0 0 S 0 0.0 0:00.00 MpxAsyncIoDaemo
2649 root 19 0 0 0 0 S 0 0.0 0:00.00 MpxResumeIoDaem
2650 root 15 0 0 0 0 S 0 0.0 0:00.00 MpxPeriodicCall
2651 root 19 0 0 0 0 S 0 0.0 0:00.00 MpxGrDaemon
2652 root 19 0 0 0 0 S 0 0.0 0:00.00 MpxProactiveDae
2653 root 19 0 0 0 0 S 0 0.0 0:00.00 MpxDispatchDaem
2654 root 19 0 0 0 0 S 0 0.0 0:00.00 MpxTestDaemon
2727 root 5 -10 0 0 0 S 0 0.0 0:00.00 kmpathd/0
..
2758 root 15 0 0 0 0 S 0 0.0 0:00.04 kjournald
..
2761 root 15 0 0 0 0 S 0 0.0 0:00.26 kjournald
2762 root 15 0 0 0 0 S 0 0.0 0:00.01 kjournald
2763 root 15 0 0 0 0 S 0 0.0 0:00.22 kjournald
2764 root 15 0 0 0 0 S 0 0.0 0:01.97 kjournald
2765 root 15 0 0 0 0 S 0 0.0 0:02.34 kjournald
3151 root 15 0 2528 276 208 S 0 0.0 0:01.10 cpuspeed
3152 root 15 0 2528 272 204 S 0 0.0 0:00.01 cpuspeed
3153 root 15 0 2528 272 204 S 0 0.0 0:00.02 cpuspeed
3155 root 15 0 2528 272 204 S 0 0.0 0:00.25 cpuspeed
3469 root 16 0 3628 608 496 S 0 0.0 0:00.34 syslogd
3473 root 16 0 2536 376 300 S 0 0.0 0:00.00 klogd
3484 root 16 0 2548 304 204 S 0 0.0 0:00.10 irqbalance
3496 rpc 15 0 4748 576 456 S 0 0.0 0:00.00 portmap
3516 root 17 0 5800 748 624 S 0 0.0 0:00.00 rpc.statd
3548 root 16 0 20916 392 188 S 0 0.0 0:00.00 rpc.idmapd
3733 root 18 0 2540 448 360 S 0 0.0 0:00.00 acpid
3747 root 16 0 6092 1876 532 S 0 0.0 0:00.00 perl
3757 root 16 0 71116 2036 1484 S 0 0.0 0:00.00 cupsd
3794 root 15 0 21920 1268 856 S 0 0.0 0:01.48 sshd
3809 root 15 0 8712 828 656 S 0 0.0 0:00.00 xinetd
3827 ntp 15 0 18560 5296 4228 S 0 0.1 0:00.00 ntpd
3837 root 18 0 19544 1336 1020 S 0 0.0 0:00.00 vsftpd
3856 root 16 0 34996 2552 1092 S 0 0.0 0:00.00 sendmail
3864 smmsp 16 0 27788 1904 836 S 0 0.0 0:00.00 sendmail
3875 root 15 0 4176 348 268 S 0 0.0 0:00.00 gpm
4058 root 16 0 96100 5544 2604 S 0 0.1 0:00.16 hpsmhd
4059 root 16 0 18776 1204 884 S 0 0.0 0:00.00 rotatelogs
4061 root 18 0 18776 1200 880 S 0 0.0 0:00.00 rotatelogs
4070 root 16 0 57072 952 536 S 0 0.0 0:00.01 crond
4079 hpsmh 19 0 364m 4364 1280 S 0 0.1 0:00.00 hpsmhd
4129 xfs 16 0 10228 1736 808 S 0 0.0 0:00.01 xfs
4141 root 15 0 285m 9296 4884 S 0 0.1 0:04.03 ovcd
4149 root 16 0 93996 6000 4020 S 0 0.1 0:02.58 ovbbccb
4168 root 15 0 91508 8708 5720 S 0 0.1 0:05.28 opcmsga
4170 root 16 0 95364 6396 4696 S 0 0.1 0:00.11 ovconfd
4192 root 16 0 29788 7444 4964 S 0 0.1 0:00.05 opcacta
4195 root 16 0 112m 7828 5732 S 0 0.1 0:01.07 coda
4199 root 18 0 17304 6928 4524 S 0 0.1 0:00.03 opcmsgi
4202 root 15 0 17396 7136 4688 S 0 0.1 0:00.35 opcle
4205 root 15 0 19884 7680 5192 S 0 0.1 0:00.06 opcmona
4224 root 16 0 8912 420 292 S 0 0.0 0:00.00 atd
4243 dbus 16 0 9644 788 616 S 0 0.0 0:00.05 dbus-daemon-1
4346 root 16 0 2876 1856 980 S 0 0.0 0:00.00 p_ctmag
4466 root 16 0 2868 1824 956 S 0 0.0 0:00.01 p_ctmat
4501 root 16 0 8992 932 776 S 0 0.0 0:00.00 cups-config-dae
4512 root 15 0 20184 7396 1268 S 0 0.1 0:35.79 hald
4530 root 15 0 4820 1660 1396 S 0 0.0 0:00.01 mstragent
4623 root 16 0 15588 2680 1980 S 0 0.0 0:00.46 mstragent
4653 root 16 0 55776 8628 5328 S 0 0.1 0:13.80 tlmagent
4864 root 17 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4865 root 17 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4866 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4867 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4869 root 17 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4871 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4873 root 16 0 90144 2900 2316 S 0 0.0 0:00.03 gdm-binary
5567 root 16 0 102m 2508 1812 S 0 0.0 0:00.00 gdm-binary
5583 root 15 0 58056 11m 2676 S 0 0.1 0:01.59 X
5680 root 16 0 31312 2704 1772 S 0 0.0 0:00.00 dsmcad
5688 gdm 15 0 123m 11m 6740 S 0 0.1 0:00.55 gdmgreeter
5989 www 15 0 470m 135m 16m S 0 1.7 1:29.22 java
8118 www 18 0 52756 1100 904 S 0 0.0 0:00.00 startPortalServ
8120 www 25 0 1567m 432m 32m S 0 5.4 25:58.16 java
8217 www 18 0 52756 1088 904 S 0 0.0 0:00.00 startJMSServer.
8219 www 16 0 909m 150m 23m S 0 1.9 9:08.18 java
8276 www 18 0 52756 1100 904 S 0 0.0 0:00.00 startEjbServer.
8278 www 17 0 1648m 411m 36m S 0 5.2 43:43.24 java
6489 root 16 0 38124 2564 2008 S 0 0.0 0:00.05 sshd
6491 www 15 0 38284 1920 1288 S 0 0.0 0:00.09 sshd
6495 www 16 0 18456 1516 1124 S 0 0.0 0:00.02 sftp-server
16777 root 16 0 38124 2604 2036 S 0 0.0 0:00.01 sshd
16779 www 16 0 38256 1856 1240 S 0 0.0 0:00.12 sshd
16780 www 16 0 53976 1616 1204 S 0 0.0 0:00.11 bash
16825 root 16 0 38124 2604 2036 S 0 0.0 0:00.01 sshd
16827 www 15 0 38256 1860 1252 S 0 0.0 0:00.12 sshd
16828 www 15 0 53976 1620 1212 S 0 0.0 0:00.02 bash
17473 root 16 0 38124 2604 2036 S 0 0.0 0:00.02 sshd
17480 www 16 0 38124 1776 1204 S 0 0.0 0:00.00 sshd
17481 www 16 0 53976 1612 1204 S 0 0.0 0:00.01 bash
17726 root 16 0 38124 2620 2052 S 0 0.0 0:00.01 sshd
17728 epcs 15 0 38256 1880 1284 S 0 0.0 0:00.03 sshd
17729 epcs 17 0 2724 624 444 S 0 0.0 0:00.00 ksh
17762 root 18 0 72296 1304 1012 S 0 0.0 0:00.00 su
17763 root 15 0 2724 664 484 S 0 0.0 0:00.01 ksh
17785 root 16 0 38124 2620 2052 S 0 0.0 0:00.00 sshd
17788 epcs 15 0 38256 1880 1284 S 0 0.0 0:00.00 sshd
17789 epcs 15 0 2724 624 444 S 0 0.0 0:00.01 ksh
17822 root 17 0 72296 1304 1012 S 0 0.0 0:00.00 su
17823 root 16 0 2724 652 472 S 0 0.0 0:00.00 ksh
17848 root 16 0 73036 1280 768 S 0 0.0 0:00.00 crond
17850 root 18 0 5356 912 776 S 0 0.0 0:00.00 sh
17853 root 16 0 13384 1708 1336 S 0 0.0 0:00.00 perl
17861 root 18 0 3636 528 436 S 0 0.0 0:00.00 vmstat


'top' output when system is healthy, after reboot and app startup:
===

top - 08:57:03 up 2 days, 12:12, 1 user, load average: 0.08, 0.08, 0.05
Tasks: 125 total, 2 running, 123 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.3% us, 0.1% sy, 0.0% ni, 98.2% id, 0.3% wa, 0.0% hi, 0.0% si
Mem: 8164332k total, 3232068k used, 4932264k free, 507500k buffers
Swap: 16777208k total,0k used, 16777208k free, 1036236k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1370 www 15 0 6144 936 696 R 2 0.0 0:00.01 top
1 root 16 0 4752 556 460 S 0 0.0 0:00.99 init
2 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.12 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 0:00.14 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 0:00.08 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
10 root 5 -10 0 0 0 S 0 0.0 0:00.14 events/0
11 root 5 -10 0 0 0 S 0 0.0 0:00.00 events/1
12 root 5 -10 0 0 0 S 0 0.0 0:00.01 events/2
13 root 5 -10 0 0 0 S 0 0.0 0:00.03 events/3
14 root 5 -10 0 0 0 S 0 0.0 0:00.01 khelper
15 root 15 -10 0 0 0 S 0 0.0 0:00.00 kacpid
70 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/0
71 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/1
72 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/2
73 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/3
74 root 15 0 0 0 0 S 0 0.0 0:00.12 khubd
101 root 20 0 0 0 0 S 0 0.0 0:00.00 pdflush
102 root 15 0 0 0 0 S 0 0.0 0:01.27 pdflush
105 root 12 -10 0 0 0 S 0 0.0 0:00.00 aio/0
103 root 25 0 0 0 0 S 0 0.0 0:00.00 kswapd1
104 root 25 0 0 0 0 S 0 0.0 0:00.00 kswapd0
106 root 5 -10 0 0 0 S 0 0.0 0:00.00 aio/1
107 root 5 -10 0 0 0 S 0 0.0 0:00.00 aio/2
108 root 5 -10 0 0 0 S 0 0.0 0:00.00 aio/3
252 root 23 0 0 0 0 S 0 0.0 0:00.00 kseriod
400 root 7 -10 0 0 0 S 0 0.0 0:00.00 kmirrord
423 root 15 0 0 0 0 S 0 0.0 0:01.08 kjournald
1705 root 6 -10 3604 444 364 S 0 0.0 0:00.01 udevd
2336 root 6 -10 0 0 0 S 0 0.0 0:00.00 kauditd
2472 root 15 0 0 0 0 S 0 0.0 0:00.00 emcpd
2473 root 15 0 0 0 0 S 0 0.0 0:00.00 emcpdefd
2474 root 19 0 0 0 0 S 0 0.0 0:00.00 emcprequestd
2646 root 20 0 0 0 0 S 0 0.0 0:00.00 MpxAsyncIoDaemo
2647 root 20 0 0 0 0 S 0 0.0 0:00.00 MpxResumeIoDaem
2648 root 15 0 0 0 0 S 0 0.0 0:00.00 MpxPeriodicCall
2649 root 20 0 0 0 0 S 0 0.0 0:00.00 MpxGrDaemon
2650 root 20 0 0 0 0 S 0 0.0 0:00.00 MpxProactiveDae
2651 root 20 0 0 0 0 S 0 0.0 0:00.00 MpxDispatchDaem
2652 root 20 0 0 0 0 S 0 0.0 0:00.00 MpxTestDaemon
2725 root 5 -10 0 0 0 S 0 0.0 0:00.00 kmpathd/0
2726 root 5 -10 0 0 0 S 0 0.0 0:00.00 kmpathd/1
2727 root 5 -10 0 0 0 S 0 0.0 0:00.00 kmpathd/2
2728 root 8 -10 0 0 0 S 0 0.0 0:00.00 kmpathd/3
2756 root 15 0 0 0 0 S 0 0.0 0:00.14 kjournald
2757 root 15 0 0 0 0 S 0 0.0 0:00.00 kjournald
2758 root 15 0 0 0 0 S 0 0.0 0:00.00 kjournald
2759 root 15 0 0 0 0 S 0 0.0 0:00.74 kjournald
2760 root 15 0 0 0 0 S 0 0.0 0:00.01 kjournald
2761 root 15 0 0 0 0 S 0 0.0 0:00.59 kjournald
2762 root 15 0 0 0 0 S 0 0.0 0:05.38 kjournald
2763 root 15 0 0 0 0 S 0 0.0 0:05.11 kjournald
3151 root 15 0 2528 276 208 S 0 0.0 0:03.74 cpuspeed
3152 root 15 0 2528 272 204 S 0 0.0 0:03.33 cpuspeed
3153 root 15 0 2528 272 204 S 0 0.0 0:02.75 cpuspeed
3154 root 15 0 2528 272 204 S 0 0.0 0:07.42 cpuspeed
3469 root 16 0 3628 608 496 S 0 0.0 0:00.64 syslogd
3473 root 16 0 2536 376 300 S 0 0.0 0:00.00 klogd
3484 root 16 0 2548 304 204 S 0 0.0 0:00.05 irqbalance
3496 rpc 16 0 4748 588 464 S 0 0.0 0:00.00 portmap
3516 root 17 0 5800 748 624 S 0 0.0 0:00.00 rpc.statd
3548 root 16 0 20916 392 188 S 0 0.0 0:00.00 rpc.idmapd
3733 root 19 0 2540 448 360 S 0 0.0 0:00.00 acpid
3747 root 16 0 6092 1876 532 S 0 0.0 0:00.00 perl
3794 root 16 0 21920 1268 856 S 0 0.0 0:04.97 sshd
3809 root 15 0 8712 828 656 S 0 0.0 0:00.00 xinetd
3827 ntp 15 0 18560 5296 4228 S 0 0.1 0:00.01 ntpd
3837 root 18 0 19544 1336 1020 S 0 0.0 0:00.00 vsftpd
3856 root 16 0 34996 2552 1092 S 0 0.0 0:00.01 sendmail
3864 smmsp 15 0 27788 1908 840 S 0 0.0 0:00.00 sendmail
3875 root 15 0 4176 348 268 S 0 0.0 0:00.00 gpm
4058 root 15 0 96100 5544 2604 S 0 0.1 0:00.16 hpsmhd
4059 root 16 0 18776 1204 884 S 0 0.0 0:00.00 rotatelogs
4061 root 20 0 18776 1200 880 S 0 0.0 0:00.00 rotatelogs
4070 root 16 0 57072 952 536 S 0 0.0 0:00.15 crond
4079 hpsmh 18 0 364m 4364 1280 S 0 0.1 0:00.00 hpsmhd
4131 xfs 16 0 10228 1736 808 S 0 0.0 0:00.01 xfs
4161 root 15 0 285m 9628 4888 S 0 0.1 0:10.40 ovcd
4169 root 16 0 93996 6184 4020 S 0 0.1 0:06.91 ovbbccb
4188 root 15 0 92452 8960 5800 S 0 0.1 0:14.04 opcmsga
4190 root 16 0 96372 6424 4700 S 0 0.1 0:00.10 ovconfd
4212 root 16 0 28768 7440 4960 S 0 0.1 0:00.08 opcacta
4214 root 15 0 112m 7884 5736 S 0 0.1 0:02.83 coda
4219 root 18 0 17304 6928 4524 S 0 0.1 0:00.03 opcmsgi
4222 root 15 0 17396 7136 4688 S 0 0.1 0:00.74 opcle
4226 root 15 0 19884 7680 5192 S 0 0.1 0:00.12 opcmona
4244 root 16 0 8912 420 292 S 0 0.0 0:00.00 atd
4264 dbus 16 0 9644 788 616 S 0 0.0 0:00.07 dbus-daemon-1
4412 root 16 0 2876 1856 980 S 0 0.0 0:00.00 p_ctmag
4581 root 16 0 2868 1824 956 S 0 0.0 0:00.01 p_ctmat
4610 root 16 0 8992 932 776 S 0 0.0 0:00.00 cups-config-dae
4621 root 15 0 20184 7384 1272 S 0 0.1 1:38.28 hald
4638 root 15 0 4820 1660 1396 R 0 0.0 0:00.03 mstragent
4732 root 16 0 15312 2528 1980 S 0 0.0 0:00.10 mstragent
4770 root 16 0 55752 8556 5300 S 0 0.1 0:44.37 tlmagent
4973 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4974 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4975 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4976 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4978 root 21 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4981 root 18 0 2524 404 336 S 0 0.0 0:00.00 mingetty
4982 root 15 0 90144 2900 2316 S 0 0.0 0:00.03 gdm-binary
5662 root 16 0 102m 2508 1812 S 0 0.0 0:00.00 gdm-binary
5672 root 15 0 58056 11m 2676 S 0 0.1 0:05.28 X
5775 root 16 0 31312 2704 1772 S 0 0.0 0:00.00 dsmcad
5783 gdm 15 0 123m 11m 6740 S 0 0.1 0:00.62 gdmgreeter
6176 www 15 0 500m 143m 16m S 0 1.8 3:56.92 java
17994 www 18 0 52756 1100 904 S 0 0.0 0:00.00 startPortalServ
17996 www 16 0 1593m 289m 30m S 0 3.6 32:01.04 java
18095 www 18 0 52756 1088 904 S 0 0.0 0:00.00 startJMSServer.
18097 www 17 0 901m 151m 23m S 0 1.9 14:11.92 java
18386 www 18 0 52756 1100 904 S 0 0.0 0:00.00 startEjbServer.
18388 www 15 0 1586m 322m 34m S 0 4.0 60:01.31 java
29526 root 16 0 71116 2156 1592 S 0 0.0 0:00.00 cupsd
32292 root 17 0 73036 1280 768 S 0 0.0 0:00.00 crond
32295 root 18 0 5356 912 776 S 0 0.0 0:00.00 sh
32296 root 16 0 13384 1716 1344 S 0 0.0 0:00.00 perl
32305 root 16 0 3636 532 440 S 0 0.0 0:00.00 vmstat
1333 root 16 0 38124 2604 2036 S 0 0.0 0:00.02 sshd
1337 www 16 0 38256 1836 1240 S 0 0.0 0:00.00 sshd
1338 www 16 0 53976 1608 1204 S 0 0.0 0:00.02 bash
 
Old 08-05-2008, 05:06 PM   #2
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
Its your system cache. Nothing to worry about, it'll free up memory should your apps need more.

If you want to flush it, just do a:

sync
sync
echo 1 > /proc/sys/vm/drop_caches

If JVM needs more memory, adjust heap size settings.

Hope this helps.
 
Old 08-05-2008, 05:26 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
As Kenoshi says, used memory is the total of RAM used by processes, buffer memory and cache memory. This is normally more that the total memory used by processes, but can also be less due to blocks of memory being shared between processing.

Without caching, unused memory is largely wasted, so whenever you read from or write to the disk, the server keeps a copy of that part of the disk in memory to speed up the process if it needs to read that part of the disk again. Buffering is similar; different write operations are queued up to send to the disk at once, because it's more efficient to handle large writes than small ones. Both of these take up memory, but this is memory that will easily be freed up if required by a program.

To get the actual usable memory, you need to add up the free, buffer and cache memory.
 
Old 08-05-2008, 09:02 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by rjlee View Post
To get the actual usable memory, you need to add up the free, buffer and cache memory.
"free" command does it for you - second line.
 
  


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 usage too high duBeN Slackware 2 12-04-2006 06:03 AM
High memory usage Kapriel Debian 6 07-29-2005 11:01 AM
High memory usage? Davus Linux - General 6 11-28-2004 02:33 AM
high memory usage. nexx_au Fedora 2 12-08-2003 03:41 AM
Memory usage too high glock19 Linux - General 7 06-05-2003 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:58 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
Open Source Consulting | Domain Registration