Memory and CPU utilization process

Tags
cpu, memory, process, shell scripts

 
Thread Tools Search this Thread
# 1  
Old 05-20-2008
Memory and CPU utilization process

Hi,

I need to check which process in linux is taking high memory and which process is taking high cpu usage.

Regards,
Bash
# 2  
Old 05-20-2008
Probably with top or ps? Read the manpage for the options.

Regards
# 3  
Old 05-20-2008
I check with top, but i want that whatever process is currently running i want from highest CPU and memory utilization to lowest that will show all process.

Regards,
Bash
# 4  
Old 05-21-2008
Use the following command:

ps -eo pcpu,%mem,cmd|sort -k2 -r

It gives the %cpu,%memory utilization of the processes in order of memory usage from highest to lowest.


Regards,
Vinod.
# 5  
Old 05-21-2008
Quote:
Originally Posted by vguleria
Use the following command:

ps -eo pcpu,%mem,cmd|sort -k2 -r

It gives the %cpu,%memory utilization of the processes in order of memory usage from highest to lowest.


Regards,
Vinod.
Thanks for your kind reply.

Regards,
Bash

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
CPU Utilization and Memory Utilization of Services and Applications nossam Red Hat 2 03-24-2016 09:48 AM
[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%) edydsuranta Solaris 4 10-01-2012 06:11 PM
CPU and Memory Utilization every 5 minutes interval fspalero Solaris 4 09-07-2012 05:05 AM
CPU and memory utilization of a process, by process name ggayathri Emergency UNIX and Linux Support 4 08-13-2012 02:58 PM
Script to note CPU and Memory Utilization Siddheshk Shell Programming and Scripting 1 12-15-2011 03:24 AM
Get CPU,Memory utilization by process id suresh_g HP-UX 5 01-13-2011 07:46 AM
Get CPU,Memory utilization by process id suresh_g UNIX for Dummies Questions & Answers 1 01-10-2011 10:15 AM
Glance and CPU and Memory utilization gt10 UNIX for Dummies Questions & Answers 2 01-15-2010 10:31 AM
Save CPU and memory utilization over time giorgos193 Linux 1 03-04-2009 07:52 PM
Getting CPU utilization and memory for a process radiatejava UNIX for Dummies Questions & Answers 5 03-03-2009 01:47 PM
CPU Utilization and Memory Usage siba.s.nayak UNIX for Dummies Questions & Answers 2 02-06-2009 09:20 AM
CPU/Memory utilization khestoi UNIX for Dummies Questions & Answers 6 01-29-2009 06:15 PM
how to get persistant cpu utilization values per process per cpu in linux (! top,ps) pankajd UNIX for Dummies Questions & Answers 3 10-09-2008 12:26 PM
Program to find CPU,memory and I/O utilization Subhayan Shell Programming and Scripting 1 08-25-2008 06:41 AM
Utilization for memory and cpu magasem AIX 2 11-11-2006 08:36 PM