cPanelResources

Tutorial Troubleshooting high server loads on Linux servers

cPanelResources

Staff
Staff member
Apr 27, 2015
112
83
153
Houston, TX
cPanel Access Level
DataCenter Provider
cPanelResources submitted a new resource:

Troubleshooting high server loads on Linux servers - Information on how to diagnose high load averages.

Technical support analysts often receive tickets about high server loads. The cause of high server loads is very rarely attributed to defects in the cPanel software or the applications it installs. High server loads are something that should be initially investigated by the server owner, their system administrator, or server provider.

What causes high server loads?

Excessive usage of any of the following items can typically cause this...
Read more about this resource...
 

i3130002

Registered
May 8, 2019
2
0
1
Iran
cPanel Access Level
Website Owner
I do not have enough access to run these commands. Is there any other way to figure out what are high CPU usage files, processes, scripts or have any clue about it ?
Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I do not have enough access to run these commands. Is there any other way to figure out what are high CPU usage files, processes, scripts or have any clue about it ?
Thanks
Hello,

I recommend contacting your web hosting provider first to see if there's anything they notice from the server level that's leading to the increased CPU usage.

Thank you.
 

i3130002

Registered
May 8, 2019
2
0
1
Iran
cPanel Access Level
Website Owner
I had to move my 8 domains as of having high CPU usage to another hosting provider. The new provider also complains about high usages even before deploying my backup. There is nothing that consumes CPU I have 2 layers of caching (Wordpress plugin + Cloudflare) but I have very high CPU and Ram usage.
resourceusagedetails-html-2019-05-10-02_35_06.jpg resourceusagedetails-html-2019-05-10-02_35_25.jpg
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @i3130002,

You may need to consult with your provider to see if there's any specific information they can share with you regarding the source of the CPU usage. With root access, your provider can make use of the steps in this guide to better understand what's generating the additional usage.

Thank you.
 
  • Like
Reactions: i3130002

lumina

Member
May 1, 2008
6
0
51
Hello,

I found this tutorial today. Good advices. I would like to test your script.

I would like to know how to implement it. I create a script file et chmod +x.
I suppose it's working with a cron job. Could you confirm? What are the good parameters for the cronjob? The period.
Thank you.

Lumina
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I would like to know how to implement it. I create a script file et chmod +x.
I suppose it's working with a cron job. Could you confirm? What are the good parameters for the cronjob? The period.
Hello Lumina,

1. You can create the example shell script included in the tutorial with a filename such as checkresources.sh. EX:

Code:
touch /root/checkresources.sh
Then, save the contents of the example shell script to this file using your preferred command-line text editor. EX:

Code:
vi /root/checkresources.sh
The default file permissions of 0644 are sufficient for this file.

2. To execute this script every 5 minutes, setup a cron job with the following syntax:

Code:
*/5 * * * * sh /root/checkresources.sh
Thank you.