Free memory
I use command "top" found that the server free memory is very slow , but the loading is very slow , so I wonder what process used up the memory , how can I know the allocation of memory usage ( by process ) ? how can I know what process using high menory ?
Thx. |
If you type 'M' into top, it will reorder the processes by memory usage.
However, it is normal to have low free memory, since any spare memory will be used for disk caching. What is more important is to know how much swap memory is being used. Thrashing of the swap file is what slows things down dramatically. |
vmstat is also a useful command to get swap status.
Thanks |
LinuxPlanet - Tutorials - How do You Really Measure Linux Bloat? - Different Methods to Query Memory Usage
http://www.linuxplanet.com/linuxplan...orials/6830/1/ smem Description: memory reporting tool Tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. Homepage: http://www.selenic.com/smem/ |
All times are GMT -5. The time now is 02:15 AM. |