VMSTAT

htop

atop

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.

Open a terminal and Type the following command

Sysstat

mpstat -> contained in sysstat

Memory monitoring of a give Process

System memory allocation

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!
This was originally found @ http://www.linuxinsight.com/proc_sys_vm_drop_caches.html

Loop free memory bash

Memory & CPU Utilisation

See also http://www.unix.com/shell-programming-scripting/65947-memory-cpu-utilization-process.html

process id from name

top for only

Machine CPU – using ps aux

See also: http://bashscripts.org/forum/viewtopic.php?f=15&t=1237 and http://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-cpu-usage-of-a-process-63726/

Process CPU – using ps uax

Process CPU – using top

Even better!

Load – General

Checking your server load using bash

Load – Using uptime

References

1. http://www.linuxquestions.org/questions/programming-9/check-server-load-with-bash-703464/
2. http://freetofeel.com/page3/
3. http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html
4. http://www.shibuvarkala.com/2010/06/how-to-find-most-memory-taking-process.html

About Gugulethu Ncube

IT enthusiast getting things done.