Upton redhat 9 there was gc (garbage collector), which cleaned memory
of its unused data.
This was later deprecated and use of cache became prominent and useful.
When you are checking memory on your server/system use free -m
command. It will show used memory and the cache memory. Even top will
show the same but free will focus only on memory.
Let me put an o/p here for explanation...
free -m
total used free shared buffers cached
Mem: 1001 438 563 0 144 186
In the above case...
the apparent free memory is ---
(apparent) Free = used - cache
cache is generally used to improve performance, so that services need
not load content into RAM again and can directly serve from cache.
So next time you check memory, check the cache value too.
Regards,
DoOrsOfpErcEpTiON
--- In [email protected], "Prashant Karmankar"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am ushing RHEL5 with 4GB RAM, Its observed that some time server is
> consuming more than 90% Physical Memory however top command shows that
> only jboss is taking 25% and other service is normal. How can i find
> out which other service is consuming memory. Server total cpu load is
> 0.0 to 1.8 , free -m command shows only 300-400 MB memory free, swap
> memory is also 0% utilization.
>
> Prashant
>