How to check High CPU and Memory load usages?

How to check High CPU and Memory load usages?

If you have installed “sar” on linux server and do you want to only High CPU load, Memory usage log with time stamp and disk space usage log then use below script :

File Name : cpumemdisk.sh

#/bin/bash
echo “This system date  is $(date)”
echo ”                                                           “;
echo “Load Report in the Server:-“;echo “———————————–“;sar -q | tail -n +4 | grep -v -average | awk {‘print $5 ” ” $1’}| sort -rn | awk {‘print “Time: ” $2 ” %Load: “$1’} | head
echo ”                                                           “;
echo “Memory Usage Report in the Server:-“;echo “———————————–“;sar -r | tail -n +4 | grep -v -average | awk {‘print $5 ” ” $1’}| sort -rn | awk {‘print “Time: ” $2 ” %Memory used: “$1’} | head
echo ”                                                           “;
echo “Disk space Usages “;echo “———————————–“; df -h

 

Enjoy 🙂 !!!

Bookmark the permalink.

12 Responses to How to check High CPU and Memory load usages?

  1. Pingback: generic ventolin

  2. Pingback: cipro cost

  3. Pingback: cialis 20mg price

  4. Pingback: naltrexone weight loss

  5. Pingback: tylenol extra strength 500 mg

  6. Pingback: viagra women

  7. Pingback: buy chloroquine

  8. Pingback: hydroxychloroquine otc

  9. Pingback: cvs pharmacy coupons for viagra

  10. Pingback: buy cialis

  11. Pingback: order viagra online

  12. Pingback: cialis online pharmacy