In this article, I will provide you script which helps you to find out top 10 memory consuming process.
I have written this script when one of our clients wants email for every top consuming process on the server.
In this script, I have collecting information from servers when it's on high utilization.
Below are the conditions used in the script to monitor the process.
- Send Email When CPU utilization above 60%
- Top 10 CPU Utilization Process
- Top 10 Memory Utilization Process
As we all know monitoring server process is the very important thing for every system admin.
This script will help you to know which process eats CPU and Memory.
This is complete automated script which will send you an email notification when above conditions are true.
Make sure you have a mail server configured on your server. if not then follow below link which helps you to configure a mail server.
Install bc :
Before using this script install 'bc' on the server. bc will help to calculate the average of CPU utilization.