|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-03-24 14:13 UTC] jorritdeklerk at gmail dot com
Description: ------------ On both a productionserver and development server php-fpm SOMETIMES crashes when opcache file_cache is enables as secondary cache resulting in 503 errors. The problem goes automatically away when opcache restarts after 180 seconds or when php-fpm is restarted AND the opcache file dir is emptied. The problem does not occur when file_cache is disabled or when file_cache_only is true. php.ini opcache.enable=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=16 opcache.validate_timestamps=1 opcache.revalidate_freq=1 (also tried 0 and 60) opcache.file_cache="/dir/to/opcache/" opcache.force_restart_timeout=180 ;opcache.file_cache_only=1 opcache.use_cwd=1 http-error.log [Wed Mar 24 14:33:36.629648 2021] [proxy_fcgi:error] [pid 35068:tid 34385076736] [client 192.168.2.16:14655] AH01067: Failed to read FastCGI header, referer: https://example.com/admin/plugins.php [Wed Mar 24 14:33:36.629670 2021] [proxy_fcgi:error] [pid 35068:tid 34385076736] (70014)End of file found: [client 192.168.2.16:14655] AH01075: Error dispatching request to : , referer: https://example.com/admin/plugins.php /var/log/php-fpm.log [24-Mar-2021 14:33:36] WARNING: [pool www] child 43384 exited on signal 11 (SIGSEGV) after 0.241076 seconds from start [24-Mar-2021 14:33:36] NOTICE: [pool www] child 44577 started There are no problems reported when I activate an opcache log (no (fatal) errors). Problem most of the time occurs after changing / adding code to application (both tested on own application and Moodle 3.10). Tried different memory_consumptions (very small to very big); no luck. Maybe related to Bug #75670 and Bug #80154, Disabling file_cache for now. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 09:00:01 2025 UTC |
For more context, we are running: - PHP 7.4.25 (from IUS repo) - CentOS Linux release 7.8.2003 (Core) OPcache configuration was default with some exceptions: opcache.enable_cli=1 opcache.blacklist_filename=/etc/php.d/opcache*.blacklist opcache.file_cache: /var/cache/php/opcache/${USER}