docker icon indicating copy to clipboard operation
docker copied to clipboard

'recommended' opcache generates warnings

Open jmarucha opened this issue 2 years ago • 1 comments

System

Image ID: 1e6634eeb3b3 (cuurrently "latest" tag) App version: Nextcloud 24.0.1 DB: mariadb

Issue

The current image contains

# cat /usr/local/etc/php/conf.d/opcache-recommended.ini
...
opcache.interned_strings_buffer=16
...

The current version of Nextcloud produce following warning

  • The PHP OPcache module is not properly configured. See the documentation ↗ for more information.
    • 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 16.

I guess the thing is pretty self-explanatory but:

Steps to reproduce

Install and run the container. No heavy uploading was done.

W/A

Bind /usr/local/etc/php/conf.d/opcache-recommended.ini to a local file system. Configure opcache for a bigger bufer.

jmarucha avatar Jun 17 '22 23:06 jmarucha

This is also discussed in https://github.com/nextcloud/docker/issues/1758

SimJoSt avatar Jul 31 '22 14:07 SimJoSt

duplicate of #1758

J0WI avatar Sep 09 '22 13:09 J0WI