Eclipse or SUNrise...

Eclipse or SUNrise...
...JAVA for sure

Wednesday, November 17, 2010

How to find out what is consumig most of resources under UNIX

Today just a couple of handy UNIX commands, which I often use under AIX/Linux OS.

To list the 20 biggest files in the /opt file system:

find /opt -xdev -ls | sort +6 -nr | head -20


To list top 10 processes which consume most of CPU

ps aux | head -1; ps aux | sort -rn +2 | head -10


Additionally you can use top on Linux or topas or nmon on AIX.

To list top 10 processes which consume most memory

ps aux | head -1; ps aux | sort -rn +3 | head


And finally to find out java application processes (i.e. application servers)

ps -ef | grep java

No comments: