retechpro

Well-Known Member
Dec 23, 2022
141
16
18
Pakistan
cPanel Access Level
Root Administrator
I have cPanel with multiple sites. 100 sites in it. Today it showing 503 & 504 error. While checking i saw resources are using 100% and all sites are down. How can i check which site is creating issue? I’ve a root access of the server.

is there any way to find out the issue.
I’m using Cloudlinux, litespeed. Therr is no malware issue in sites.
It happen today and resources are not going down.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
576
266
138
IN
cPanel Access Level
Root Administrator
1.) Check the running processes using the top command. This will show server load and CPU and Memory usage.

Code:
# top -cd3
2.) Check disk space and inodes usage

Code:
# df -hT

#df -i
3.) Make sure the services are up and running.
 

mtindor

Well-Known Member
Sep 14, 2004
1,516
142
343
inside a catfish
cPanel Access Level
Root Administrator
I have cPanel with multiple sites. 100 sites in it. Today it showing 503 & 504 error. While checking i saw resources are using 100% and all sites are down. How can i check which site is creating issue? I’ve a root access of the server.

is there any way to find out the issue.
I’m using Cloudlinux, litespeed. Therr is no malware issue in sites.
It happen today and resources are not going down.
See this thread:


If you are running kernelcare and you think this might be your issue, CloudLinux says:

If your server is affected, you can mitigate the problem by running the following command:
# kcarectl --unload; kcarectl --update

In case of any doubt, please contact the CloudLinux Support team.
 

retechpro

Well-Known Member
Dec 23, 2022
141
16
18
Pakistan
cPanel Access Level
Root Administrator
1.) Check the running processes using the top command. This will show server load and CPU and Memory usage.

Code:
# top -cd3
2.) Check disk space and inodes usage

Code:
# df -hT

#df -i
3.) Make sure the services are up and running.
Thank you. But the issue was with single cpanel not the whole server. Cpanel have 100 websites and out of 100 only 1 site was creating issue. I want to know how to find out the site which is creating issue.

due to one site all resources are going up.
 

retechpro

Well-Known Member
Dec 23, 2022
141
16
18
Pakistan
cPanel Access Level
Root Administrator
See this thread:


If you are running kernelcare and you think this might be your issue, CloudLinux says:
Thank you for quick response. Unfortunately the issue with 1 site due to plugin or theme conflicts. I don’t know which site is consuming all resources.
 

mtindor

Well-Known Member
Sep 14, 2004
1,516
142
343
inside a catfish
cPanel Access Level
Root Administrator
Thank you for quick response. Unfortunately the issue with 1 site due to plugin or theme conflicts. I don’t know which site is consuming all resources.
If you run 'top' , what is the biggest offender? PHP? MySQL?

If MySQL, run 'mysqladmin processlist' a few times and see if you can figure out which database is being accessed most heavily.

If you are running CloudLinux, are you using PHP via EasyApache or or are you using Alt-PHP? Are you using lsphp handler?

ps auwwx|grep php
 

retechpro

Well-Known Member
Dec 23, 2022
141
16
18
Pakistan
cPanel Access Level
Root Administrator
If you run 'top' , what is the biggest offender? PHP? MySQL?

If MySQL, run 'mysqladmin processlist' a few times and see if you can figure out which database is being accessed most heavily.

If you are running CloudLinux, are you using PHP via EasyApache or or are you using Alt-PHP? Are you using lsphp handler?

ps auwwx|grep php
I have already tried top command. It is not showing that acc.

I’m using Cloudlinux And lsphp handler. Still did not find the solution.

we need to find out which site are using high resources in cpanel. As already told cpanel hosted 100 websites.
 

ResellerWiz

Well-Known Member
Mar 24, 2023
150
66
103
USA
cPanel Access Level
Root Administrator
Twitter
You may want to consider enabling Per Client Throttling in LiteSpeed if you suspect it may be an attack on a particular site: