YunoHost-Apps / nextcloud_ynh

Nextcloud package for YunoHost
https://nextcloud.com/
GNU Affero General Public License v3.0
147 stars 62 forks source link

The OPcache buffer is nearly full #613

Open tio-trom opened 11 months ago

tio-trom commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

I even did as recommended here https://github.com/nextcloud/server/issues/37618#issuecomment-1499251503 - but doesnt work...

tio-trom commented 9 months ago

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

utzer commented 5 months ago

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 commented 5 months ago

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

tio-trom commented 5 months ago

@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 commented 5 months ago

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 commented 3 months ago

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?