What's using up all my memory?
Hello,Is there a way to figure out what's using up all of my memory?
Here is an output from top:
----------------------------------
Mem: 2072684k total, 2060756k used, 11928k free, 26092k buffers
Swap: 4096532k total, 67116k used, 4029416k free, 1786584k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25462 root 16 0 3284 928 1624 R 0.3 0.0 0:00.78 top
1 root 16 0 2000 308 1320 S 0.0 0.0 1:04.91 init
2 root RT 0 0 0 0 S 0.0 0.0 0:06.99 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:01.09 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 1:10.11 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:01.33 ksoftirqd/1
6 root RT 0 0 0 0 S 0.0 0.0 0:04.55 migration/2
7 root 34 19 0 0 0 S 0.0 0.0 0:01.63 ksoftirqd/2
8 root RT 0 0 0 0 S 0.0 0.0 0:47.59 migration/3
9 root 34 19 0 0 0 S 0.0 0.0 0:01.83 ksoftirqd/3
10 root 5 -10 0 0 0 S 0.0 0.0 0:03.47 events/0
11 root 5 -10 0 0 0 S 0.0 0.0 0:00.86 events/1
12 root 5 -10 0 0 0 S 0.0 0.0 0:00.91 events/2
13 root 5 -10 0 0 0 S 0.0 0.0 0:00.04 events/3
14 root 5 -10 0 0 0 S 0.0 0.0 0:00.49 khelper
15 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
39 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
Here is an output of top with ctrl-m:
---------------------------------------------
Mem: 2072684k total, 2060940k used, 11744k free, 26652k buffers
Swap: 4096532k total, 67116k used, 4029416k free, 1786804k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1840 root 16 0 31148 26m 6516 S 0.0 1.3 0:21.96 spamd
1139 root 16 0 30272 25m 6516 S 0.0 1.3 0:22.75 spamd
1849 root 16 0 30268 25m 6516 S 0.0 1.3 0:20.91 spamd
1992 root 16 0 30096 25m 6516 S 0.0 1.3 0:36.22 spamd
1640 root 16 0 30048 25m 6516 S 0.0 1.3 0:21.38 spamd
28276 root 16 0 27200 22m 6516 S 0.0 1.1 0:00.62 spamd
18160 nobody 15 0 15948 9440 8860 S 0.0 0.5 0:00.31 httpd
18152 nobody 15 0 15944 9296 8860 S 0.0 0.4 0:00.51 httpd
18154 nobody 15 0 15952 9220 8860 S 0.0 0.4 0:00.31 httpd
18263 nobody 15 0 14832 8372 8860 S 0.0 0.4 0:00.36 httpd
18250 nobody 16 0 14560 8076 8860 S 0.0 0.4 0:00.44 httpd
18159 nobody 15 0 14548 7912 8860 S 0.0 0.4 0:00.67 httpd
18153 nobody 16 0 14512 7704 8860 S 0.0 0.4 0:00.17 httpd
3957 named 18 0 77536 7496 4780 S 0.0 0.4 0:00.00 named
11854 mysql 16 0 39656 7152 3756 S 0.0 0.3 1:20.48 mysqld
11855 mysql 16 0 39656 7152 3756 S 0.0 0.3 1:31.21 mysqld
11856 mysql 20 0 39656 7152 3756 S 0.0 0.3 0:00.00 mysqld
Can spamd really be taking up all the memory?
I have 2 gigs of memory but it seems that at any one time, only a few hundred megs are free. What gives?
Thanks.
Lamp