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

Increase opcache limit #133

Closed
wants to merge 1 commit into from
Closed

Conversation

stephdl
Copy link
Contributor

@stephdl stephdl commented Feb 7, 2022

See https://community.nethserver.org/t/nextcloud-the-php-opcache-module-is-not-properly-configured/19732

Nextcloud reclaims more memory and file keys storage

max_accelerated_files : 100 000 is the maximum value
opcache.memory_consumption : set to 256 I understand it must be < php_admin_value[memory_limit] = 512M
opcache.interned_strings_buffer: default is 8 increased to 32 (could be 64)

@stephdl stephdl requested a review from gsanchietti February 7, 2022 14:56
@nethbot
Copy link
Member

nethbot commented Feb 7, 2022

in 7.9.2009/autobuild:

@gsanchietti
Copy link
Member

I couldn't find such warning on my server, nor I see a way to reproduce the issue.
Let's wait to see if it is an issue for many users and what is the real impact.

We are going to change the defaults only if it is really needed.

@jgelauff
Copy link
Contributor

jgelauff commented Feb 9, 2022

i have the warning to, run also wordpress on the server
but see also this issue nextcloud/server#30532

@stephdl
Copy link
Contributor Author

stephdl commented Feb 9, 2022

What warnings @jgelauff , could you post it please ?

@jgelauff
Copy link
Contributor

jgelauff commented Feb 9, 2022

You are currently running PHP 7.3.29. Upgrade your PHP version to take advantage of performance and security updates provided by the PHP Group ↗ as soon as your distribution supports it.
Nextcloud 23 is the last release supporting PHP 7.3. Nextcloud 24 requires at least PHP 7.4.
The PHP OPcache module is not properly configured:
The maximum number of OPcache keys is nearly exceeded. To assure that all scripts can be hold in cache, it is recommended to apply opcache.max_accelerated_files to your PHP configuration with a value higher than 10000.
The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply opcache.memory_consumption to your PHP configuration with a value higher than 256.
The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than 8.

@stephdl
Copy link
Contributor Author

stephdl commented Feb 10, 2022

cc @gsanchietti

@gsanchietti
Copy link
Member

No real errors have been reported, so let's keep the original configuration for now.

@gsanchietti gsanchietti closed this Mar 2, 2022
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

Successfully merging this pull request may close these issues.

4 participants