Show top processes consume CPU on Centos Redhat RHEL Fedora

Show top processes consume CPU on Centos Redhat RHEL Fedora

 

How to show top 10 processes which consumes CPU on our Server.

[root@localhost ~]# ps auxf | sort -nr -k 3 | head -10
root 14223 3.2 30.6 1414716 310432 pts/2 Sl+ 00:23 7:42 | \_ /opt/ManageEngine/OpManager/jre/bin/java -cp /opt/ManageEngine/OpManager/classes:/opt/ManageEngine/OpManager/classes/AdventNetUpdateManagerInstaller.jar:/opt/ManageEngine/OpManager/classes/AdventNetSUMServer.jar:/opt/ManageEngine/OpManager/classes/AdventNetSUMClient.jar:/opt/ManageEngine/OpManager/classes/OpManagerDistribution.jar:/opt/ManageEngine/OpManager/classes/WiFiMediation.jar:/opt/ManageEngine/OpManager/classes/jaxb-api.jar:/opt/ManageEngine/OpManager/classes/jaxb-impl.jar:/opt/ManageEngine/OpManager/classes/dom4j-1.6.1.jar:/opt/ManageEngine/OpManager/classes/vijava220090625.jar:/opt/ManageEngine/OpManager/classes/SMSServer.jar:/opt/ManageEngine/OpManager/classes/SMSLib.jar:/opt/ManageEngine/OpManager/classes/cryptix-jce-provider.jar:/opt/ManageEngine/OpManager/classes/OpManagerServerClasses.jar:/opt/ManageEngine/OpManager/classes/OpManagerCharts.jar:/opt/ManageEngine/OpManager/classes/OpManagerBeans.jar:/opt/ManageEngine/OpManager/classes/AdventNetLogging.jar:/opt/ManageEngine/OpManager/classes/OpManagerClientClasses.jar:/opt/ManageEngine/OpManager/classes/NmsServerClasses.jar:/opt/ManageEngine/OpManager/classes/RMECommon.jar:/opt/ManageEngine/OpManager/classes/AdventNetPersistence.jar:/opt/ManageEngine/OpManager/classes/AdventNetPersistenceSA.jar:/opt/ManageEngine/OpManager/classes/OpManagerStartupClasses.jar:/opt/ManageEngine/OpManager/classes/AdventNetSUMClient.jar:/opt/ManageEngine/OpManager/classes/AdventNetUpdateManagerInstaller.jar:/opt/ManageEngine/OpManager/classes/AdventNetSUMServer.jar::/opt/ManageEngine/OpManager/classes/AdventNetSnmp.jar:/opt/ManageEngine/OpManager/classes/AdventNetSAS.jar:/opt/ManageEngine/OpManager/classes/crimson.jar:/opt/ManageEngine/OpManager/classes/Mail.jar:/opt/ManageEngine/OpManager/classes/activation.jar:/opt/ManageEngine/OpManager/classes/AdventNetNPrevalent.jar:/opt/ManageEngine/OpManager/classes/bsh-1.2b3.jar:/opt/ManageEngine/OpManager/classes/ManagementServer.jar::/opt/ManageEngine/OpManager/tomcat/lib/servlet-api.jar:/opt/ManageEngine/OpManager/tomcat/bin/bootstrap.jar:/opt/ManageEngine/OpManager/tomcat/bin/tomcat-juli.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-fileupload-1.1.1.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-io-1.2.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-logging-api.jar:/opt/ManageEngine/OpManager/tomcat/lib/catalina.jar:/opt/ManageEngine/OpManager/tomcat/lib/tomcat-coyote.jar:/opt/ManageEngine/OpManager/tomcat/lib/jsp-api.jar:/opt/ManageEngine/OpManager/tomcat/lib/annotations-api.jar:/opt/ManageEngine/OpManager/tomcat/lib/jasper.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-beanutils.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-collections.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-logging.jar:/opt/ManageEngine/OpManager/tomcat/lib/commons-digester.jar:/opt/ManageEngine/OpManager/tomcat/lib/el-api.jar:/opt/ManageEngine/OpManager/tomcat/lib/jasper-el.jar:/opt/ManageEngine/OpManager/tomcat/lib/tomcat-dbcp.jar:/opt/ManageEngine/OpManager/tomcat/lib/jasper-jdt.jar:/opt/ManageEngine/OpManager/tomcat/lib/jasper-el.jar:/opt/ManageEngine/OpManager/tomcat/lib/catalina-tribes.jar:/opt/ManageEngine/OpManager/tomcat/lib/catalina-ant.jar:/opt/ManageEngine/OpManager/tomcat/lib/catalina-ha.jar::/opt/ManageEngine/OpManager/classes/jtds-1.2.2.jar:/opt/ManageEngine/OpManager/classes/postgresql_jdbc4.jar:/opt/ManageEngine/OpManager/mysql/MMMySQLDriver/mysql_connector.jar::/opt/ManageEngine/OpManager/classes/AdventNetUI.jar:/opt/ManageEngine/OpManager/classes/AdventNetUtils.jar:/opt/ManageEngine/OpManager/classes/ApiUtils.jar:/opt/ManageEngine/OpManager/classes/AdventNetCharts.jar:/opt/ManageEngine/OpManager/classes/jcchartK.jar:/opt/ManageEngine/OpManager/classes/AdventNetTftp.jar:/opt/ManageEngine/OpManager/classes/AdventNetCLI.jar:/opt/ManageEngine/OpManager/classes/AdventNetJta.jar:/opt/ManageEngine/OpManager/classes/AdventNetCLIClient.jar:/opt/ManageEngine/OpManager/classes/AdventNetJta.jar:/opt/ManageEngine/OpManager/classes/jta.jar:/opt/ManageEngine/OpManager/classes/AdventNetSnmpDistributedAPI.jar:/opt/ManageEngine/OpMan
root 2659 0.2 1.2 436156 12488 ? Sl Jan14 1:03 /usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr –blockFd 3
root 1507 0.2 0.2 174888 2220 ? S Jan14 1:06 /usr/sbin/vmtoolsd
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
rtkit 2413 0.0 0.0 168452 892 ? SNl Jan14 0:00 /usr/libexec/rtkit-daemon
root 9 0.0 0.0 0 0 ? S Jan14 0:00 \_ [khelper]
root 8 0.0 0.0 0 0 ? S Jan14 0:00 \_ [cgroup]
root 7940 0.0 0.1 108336 1800 pts/3 Ss Jan14 0:00 \_ -bash
root 7936 0.0 0.3 98024 3816 ? Ss Jan14 0:00 \_ sshd: root@pts/3
root 71 0.0 0.0 0 0 ? S Jan14 0:00 \_ [kstriped]
[root@localhost ~]#

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>