zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

Opcache optimisation #236

Open wixaw opened 3 years ago

wixaw commented 3 years ago

Hello

I have an Apache 2.4.37 + PHP-FPM server 7.3.29 on CentOS 8 behind a Apache proxypass It propulse 80 WordPress instances and 12 Joomla. These are for the most part small team sites and presentation project presentation. All WordPress sites each have the W3TC cache system

I notice some latency and sometimes some conflict and I suspect opcache to be the couple

Here is the configuration I tried to set up:

php_value[opcache.memory_consumption]=6000
php_value[opcache.interned_strings_buffer]=32
php_value[opcache.max_accelerated_files]=50000
php_value[opcache.revalidate_freq]=300
php_value[opcache.enable_cli]=1
php_value[opcache.validate_timestamps]=1
php_value[opcache.max_wasted_percentage]=25
php_value[opcache.revalidate_path]=1
php_value[opcache.error_log] = /var/log/httpd/opcache-error.log

There is never anything in this log file

Here are the values given by an opcache dashboard image

image

I have the impression that he uses 100% of the memory I give him but on the server it does not seem to use it because the VM has only 3GB of RAM and only 1GB is used

Thanks you in advance William