Consent to the use of Personal Data and Cookies

This website needs your consent to use cookies in order to customize ads and content.

If you give us your consent, data may be shared with Google.

Nextcloud: OPcache buffer is nearly full

Nextcloud complains about opcache.interned_strings_buffer and opcache.memory_consumption not being large enough, so this is how to adjust them.

58 views
d

By. Jacob

Edited: 2022-08-10 07:54

There are some warnings regarding your setup.

  • 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 128.
    • 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.

This is not really an error, but rather a warning to inform you that your OPcache resources may be running low, and it could be useful to increase the available resources.

The specific options can typically be adjusted in /etc/php/8.0/fpm/conf.d/10.opcache.conf – if the file does not exist, you can try to create it.

You need to adjust opcache.interned_strings_buffer and opcache.memory_consumption. E.g. Just increase their values for now:

opcache.interned_strings_buffer=16
opcache.memory_consumption=256

The conf.d directory is for user-configuration options, whereas direct php.ini modifications could be overwritten doing an update.

Note. The exact location may depend on which linux distribution you are using.

Tell us what you think:

  1. How to setup a redirect for webfinger and nodeinfo in your server configuration to make Nextcloud stop complaining about it.
  2. The Nextcloud update server seems to be suffering from high load at times, resulting in gateway timeout. Here is how to fix that annoying problem.
  3. Sometimes you might encounter compatibility problems with Nextcloud when updating to the latest version of PHP, luckily we can just run multiple versions of PHP on the same server.
  4. This tutorial explains how to install Nextcloud on the Apache HTTP server in Linux.

More in: Nextcloud