wmstat

htop

Installation

atop

Installation

How to Find the Most Memory taking process in Ubuntu Linux
Some Times system administrators need to kill the memory eater process. When your system become slower, check the following command and find the memory eater.

PS

Sysstat

Installation

mpstat -> contained in sysstat

Memory monitoring

or

Empty / free up memory caches
To free pagecache

To free dentries and inodes:

To free pagecache, dentries and inodes:

As this is a non-destructive operation and dirty objects are not freeable, the user should run “sync” first!

loop free memory bash

Memory & CPU Utilisation

process id from name

top for only

Machine CPU – using ps aux

Process CPU – using ps uax

Process CPU – using top

Even Better!

Load – General

Load – Using uptime

References

1. Website Memory Monitoring: http://freetofeel.com/2011/03/02/server-monitor.html

2. check server load with bash: http://www.linuxquestions.org/questions/programming-9/check-server-load-with-bash-703464/

3. How do I Find Out Linux CPU Utilization: http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html

3. How to Find the Most Memory taking process in Ubuntu Linux:
http://www.shibuvarkala.com/2010/06/how-to-find-most-memory-taking-process.html

4. Free page caches http://www.linuxinsight.com/proc_sys_vm_drop_caches.html

5. Memory and CPU utilization process: http://www.unix.com/shell-programming-scripting/65947-memory-cpu-utilization-process.html

6. Checking your server load using bash: http://webigniter.wordpress.com/2011/08/03/checking-your-server-load-using-bash/

7. Output CPU load: http://bashscripts.org/forum/viewtopic.php?f=15&t=1237

8. How to get %CPU usage of a process: http://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-cpu-usage-of-a-process-63726/

About Gugulethu Ncube

IT enthusiast getting things done.