OpCache Constantly Restarting Itself

Deepblue

Active Member
#1
Hello,

I have problem with opcache, it keep restarting itself like every hour constantly. I've tried all solutions on the internet but no luck, problem still persist.

I am using CPanel, Centos 6.8 x64, EasyApache4, PHP 7.1.2, Litespeed 5.1.13 (php suEXEC: Yes)

PHP Handler: FCGI

My Opcache Version is: Zend OPcache 7.1.2

My Configration:
Code:
opcache.revalidate_freq=0

opcache.validate_timestamps=0

opcache.max_accelerated_files=95000

opcache.memory_consumption=1024

opcache.interned_strings_buffer=64

opcache.fast_shutdown=1
A ss from opcache control panel: http://prntscr.com/efpu9m

P.S. : I've enabled error logs but there is no any record when it restart itself.

Any help really would be appericated. Thanks in advance.
Regards.
 

NiteWave

Administrator
#6
if it's daemon mode, opcache will keep there unless lsws is restarted.

however, for a share host will thousands of accounts, there are many factors will have WHM/cPanel restart web server. so opcache will restart along with web server restart.
 

Deepblue

Active Member
#7
if it's daemon mode, opcache will keep there unless lsws is restarted.

however, for a share host will thousands of accounts, there are many factors will have WHM/cPanel restart web server. so opcache will restart along with web server restart.
I have my own dedicated machine, its not shared host. I've turned off the daemon mode and added these lines:
Code:
<IfModule LiteSpeed>
LSPHP_ProcessGroup on
LSPHP_Workers 15
</IfModule>
to "pre_virtualhost_global.conf" file to activate ProcessGroup mode. But the problem still persist. Any idea?
 

NiteWave

Administrator
#8
again, please refer
https://www.litespeedtech.com/products/litespeed-sapi/php/suexec-processgroup
"If you wish to use suEXEC Daemon mode for some users while using ProcessGroup for others, change Run On Start Up (WebAdmin console > Configuration > External App > your external application) to "suEXEC Daemon". If Run On Start Up is set to "suEXEC Daemon", ProcessGroup will override Daemon mode wherever ProcessGroup is enabled."

so ProcessGroup setting will override Damon setting.

to determine which mode lsphp is running, you can use
#pstree -p | egrep "lsphp|litespeed"
or
#ps auxf | egrep "lsphp|litespeed"
 
Top