What are some best practices for configuring OPcache in PHP-FPM pools to prevent SEGFAULTS and memory consumption issues?
To prevent SEGFAULTS and memory consumption issues when configuring OPcache in PHP-FPM pools, it is recommended to set appropriate values for opcache.memory_consumption and opcache.max_accelerated_files in the php.ini file. These values should be adjusted based on the available memory and the number of PHP files being cached to avoid running out of memory or causing segmentation faults.
opcache.memory_consumption=128
opcache.max_accelerated_files=4000