Unix: Command to Find out Most CPU Consuming Processes

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
Linux Command 

ps -eo pid,cmd,%cpu,%mem --sort=-%cpu | head -n 100 Sample Output
[oracle@TESTBOX ~]$ ps -eo pid,cmd,%cpu,%mem --sort=-%cpu | head -n 100
  PID CMD                         %CPU %MEM
 2221 /usr/bin/gnome-shell         0.6  9.9
 3558 ora_m002_cdb1                0.3 11.9
    1 /usr/lib/systemd/systemd --  0.1  0.3
  722 /usr/lib/polkit-1/polkitd -  0.1  0.6
 1177 /usr/bin/dockerd --selinux-  0.1  0.8
 1700 /usr/bin/X :0 -background n  0.1  2.0
 2159 /usr/bin/VBoxClient --draga  0.1  0.1
 2558 /usr/bin/gnome-software --g  0.1  3.5
 2934 ora_mmon_cdb1                0.1 11.8
    2 [kthreadd]                   0.0  0.0
    3 [ksoftirqd/0]                0.0  0.0
    4 [kworker/0:0]                0.0  0.0
    6 [kworker/u2:0]               0.0  0.0
    7 [rcu_sched]                  0.0  0.0
    8 [rcu_bh]                     0.0  0.0
    9 [rcuos/0]                    0.0  0.0
   10 [rcuob/0]                    0.0  0.0
   11 [migration/0]                0.0  0.0
   12 [watchdog/0]                 0.0  0.0
   13 [khelper]                    0.0  0.0
   14 [kdevtmpfs]                  0.0  0.0
   15 [netns]                      0.0  0.0
   16 [perf]                       0.0  0.0
advertisements
 
AIX Command: 

/usr/ucb/ps aux|pg|head

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

 

acehints.com Copyright 2011-21 All Rights Reserved | Site Map | Contact | Disclaimer