Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opcache optimisation #236

Open
wixaw opened this issue Jul 16, 2021 · 0 comments
Open

Opcache optimisation #236

wixaw opened this issue Jul 16, 2021 · 0 comments

Comments

@wixaw
Copy link

wixaw commented Jul 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant