List processes linux

| March 14, 2011

#ps fauxwww //Memory shown in KB//

To see only the memory resources occupied by each category of processes, such as Apache httpd, MySQL mysqld or Java, use the following command:

#ps aux | awk ‘{print $4″\t”$11}’ | sort | uniq -c | awk ‘{print $2″ “$1″ “$3}’ | sort -nr

or

To get top 10 Memory Consuming Process

# ps -auxf | sort -nr -k 4 | head -10

To view memory and swap space utilization statistics

# sar -r 3 10
# sar -R 3 10

Tags: ,

Category: Linux Administration

Comments are closed.