Comment 11 for bug 489360

Revision history for this message
Satheesh (satheesh-rsk) wrote :

The first thing is to look at the processes that are consuming more CPU / Memory resources during freezing. Whenever you feel that the system is getting hung / frozen, Can you please open the terminal and issue some performance gathering commands like top, vmstat etc...If you need,I can suggest the following commands,

1. top

2. vmstat 2 5

3. mpstat 2 5 && mpstat -P ALL 2 5 (for individual CPU utilization statistics if you have multiple processors)

4. free

5. ps -e -o pcpu,vsz,user,pid,ppid,args|grep COMMAND|grep -v grep;ps -e -o pcpu,vsz,user,pid,ppid,args|sort -rn|head -10 (To get the Top-10 processes sorted by high CPU Utilization)

6. ps -e -o vsz,pcpu,user,pid,ppid,args|grep COMMAND|grep -v grep;ps -e -o vsz,pcpu,user,pid,ppid,args|sort -rn|head -10 (To get the Top-10 processes sorted by high Virtual Memory Utilization)

If you can gather these outputs, you can figure out where the system is spending huge amount of resources...This will help finding the culprit :-)

Note: If you don't have any of these utilities installed, you can always install them using "sudo apt-get install sysstat".