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

The OPcache buffer is nearly full #613

Open
tio-trom opened this issue Oct 12, 2023 · 9 comments
Open

The OPcache buffer is nearly full #613

tio-trom opened this issue Oct 12, 2023 · 9 comments

Comments

@tio-trom
Copy link

I see that error after updating to 27.1.2~ynh2

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 128

@tio-trom
Copy link
Author

I changed the values in php.ini and restarted the php and still same error:

The PHP OPcache module is not properly configured. See the documentation ↗ for more information.

    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 10000.
    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 1000.

Despite adding crazy high values. What happens?

@tio-trom
Copy link
Author

I even did as recommended here nextcloud/server#37618 (comment) - but doesnt work...

@tio-trom
Copy link
Author

Updated to 27.1.4~ynh1 and still the same issue. What can be done?

@utzer
Copy link

utzer commented Apr 6, 2024

No solution to this?

I came here because I get the same message and also the downloads are often slow and someone suggested it could be some php cache problem.
Download speeds mostly max out at 10-20 MByte/s, connection is 500MBit/s.

@utzer
Copy link

utzer commented Apr 6, 2024

@tio-trom is there maybe separate config for this app (I mean for Nextcloud)?

@tio-trom
Copy link
Author

tio-trom commented Apr 6, 2024

@tio-trom is there maybe separate config for this app (I mean for Nextcloud)?

I am unsure honestly. On my instance it does not seem to impact it negatively. But prob need to look deeper into this.

@tio-trom
Copy link
Author

tio-trom commented Apr 6, 2024

So I already have it setup right in the php file documented here https://docs.nextcloud.com/server/28/admin_manual/installation/server_tuning.html#enable-php-opcache:

2024-04-07_00-57

But that does not fix the issue...

@Struppi
Copy link

Struppi commented May 18, 2024

I got a very same error message (Version: 28.0.5~ynh1)

"The PHP OPcache module is not properly configured. 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 "32".."

I find out, that nextcloud on my yunohost is using PHP V 8.2.19. so I scan for the php.ini files on the system
root@struppi:/home/struppi# find / -name php.ini
/var/www/nextcloud/3rdparty/aws/aws-crt-php/php.ini
/etc/php/7.4/cli/php.ini
/etc/php/7.4/fpm/php.ini
/etc/php/7.4/cgi/php.ini
/etc/php/8.2/cli/php.ini
/etc/php/8.2/fpm/php.ini
/etc/php/8.0/cli/php.ini

but in both 8.2 php.ini files the opcache is off. even if I start a nexcloud shell in the yunohost app it is the same.
Where is the PHP configuration for nextcloud?

@CypLef
Copy link

CypLef commented Jan 21, 2025

Hi,
I changed 2 parameter in /etc/php/8.3/fpm/pool.d/nextcloud.conf:

php_value[opcache.memory_consumption]=512
php_value[opcache.interned_strings_buffer]=128

and then i restart php:

sudo yunohost service restart php8.3-fpm

And no more warnings on Nextcloud.

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

4 participants