ChkServd service checks, what is the disadvantage of a lower number?

schoeps

Well-Known Member
Sep 22, 2004
107
8
168
Our PHP/Apache crashes from time to time and it's great that chkservd finds and reboots it, but the default value is set to 300. What is the disadvantage of lowering it down to 60?

Thanks all :)
 

kodeslogic

Well-Known Member
Apr 26, 2020
334
128
118
IN
cPanel Access Level
Root Administrator
ChkServd service is an in-built monitoring tool of cPanel which monitors the services enabled at Home »Service Configuration »Service Manager

The default value is 300 which means it keeps checking service status at an interval of 5 minutes. You can set it to 120 if you want it to monitor services every 2 minutes. If at any point you get ChkServd service hung notification after reducing the value then consider it to increase by 60 seconds.
 

schoeps

Well-Known Member
Sep 22, 2004
107
8
168
Thanks for the reply! I am just wondering if there is a disadvantage to lowering it to 60, it seems like a 5 minute check in the webhosting world is an eternity for customers! :)
 

schoeps

Well-Known Member
Sep 22, 2004
107
8
168
Thanks Kodeslogic, I'm setting all my servers of varying load to 60, I'll let you know how it goes! Happy Holidays!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,028
313
cPanel Access Level
Root Administrator
As mentioned, the biggest risk is a second check starting before the first one is complete. If it does detect an issue, such as Apache being offline, and performs a restart, it could be longer than 60 seconds before the restart happens and the rest of the services get scanned as well. There's nothing inherently wrong with changing the time, just 5 minutes is the default we set.