Linux find out what process are eating all memory and time allocated to process
Q. How do I find out what process are eating up all my memory. Is it possible to find out how long that memory has been allocated to particular process? How do I kill that process to free up memory?
A. You need to use the top command which provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel.
Simply type top command:
# top
top command will tell you the percentage of physical memory a particular process is using at any given time. As far as I know, there is no easy way that can tell how long that memory has been allocated.
You can also use ps command to get more information about process.
# ps aux | less
To kill process use kill command under Linux. Read man page of top and ls for more information.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Kill process in Linux or terminate a process in UNIX or Linux systems
- Scripting: How do I process accounting file /var/account/pact?
- Linux / UNIX: Find out or determine if process pid is running
- Linux / UNIX: List Open Files for Process
- FreeBSD ERROR: (8011-323-1057) Failed to allocate memory and Solution
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


December 5th, 2007 at 1:05 pm
i want to find the process execution time in LINUX???
June 26th, 2008 (2 weeks ago) at 2:45 pm
I recommend using `htop’ instead of top to monitor processes. It’s much friendlier and easy to use, and allows you to do more. (It’s colorized too!)
It’s in the ubuntu repositories, I imagine you can install it easily for debian as well.