Use 'free -m' utility to get REAL memory usage.
[u...@server /]# free -m
total used free shared buffers cached
Mem: 3876 3557 319 0 212 1083
-/+ buffers/cache: 2261 1615
Swap: 0 0 0
That means I have 3876MB total used memory. 2261MB of it is allocated
and needed. 1083MB is cached (mostly filesystem) and total free memory
is 1615MB.
If you want, you can clear linux cache (but it doesn't do any good.
Because since it's not cached anymore, it will be read from disk which
is a lot slower (and well, cached again). It might be good only if you
just read something really big..and know that you will never need to get
it again and need room for something else to cache. The cache itself is
working automagically throwing out older items and caching new items).
just to experiment use this command:
|sync; echo 3 > /proc/sys/vm/drop_caches
|To clear cache. Beware that it might bump your load average for a sec.
On 23.04.2009 13:55, Jake Vickers wrote:
Truong Duc Luong wrote:
Hi list,
My server: qmail-toaster, centos 5.3, 3GB RAM, 130 mailbox's users.
Recently, server often loads 0.1%-2%cpu and 90%-100% memory. It is
abnormally. I use top command, but it is not enough. Can anyone point
me the
way to debug, trace or reduce that?
Thank you very much.
As a Linux server runs, it will consume memory. This is normal. It
will keep old, zombie, and sleeping processes in memory in case it
needs them instead of sending them to swap. When you start using a lot
of swap, then you would worry.
All Linux systems behave this way.
---------------------------------------------------------------------------------
Managed Qmailtoaster servers are now available
Visit http://qmailtoaster.com/QMTManaged.html to order yours today!
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Please visit qmailtoaster.com for the latest news, updates, and
packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]