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

[Nextcloud] OPCache Buffer is almost full #243

Open
javiloncho opened this issue Aug 7, 2024 · 2 comments
Open

[Nextcloud] OPCache Buffer is almost full #243

javiloncho opened this issue Aug 7, 2024 · 2 comments

Comments

@javiloncho
Copy link

In nextcloud show me this message,

PHP OPcache module is not configured correctly The OPcache buffer is almost full. To make sure that all scripts can be retained in cache, it is recommended to add "opcache.memory_consumption" to your PHP configuration with a value higher than "128"... For more details check the documentation.

I think that we need to raise de value of the variable opcache.memory_consumption from 128 to 256 in /usr/local/etc/php/conf.d/opcache-recommended.ini but container is read-only.

@spantaleev
Copy link
Member

I do not see this on my setup, but I'm probably running much fewer additional Nextcloud apps than you are, which means fewer PHP files in my setup.

It's probably best if this is fixed upstream, here.

Alternatively, we can mount additional PHP config overrides (into /usr/local/etc/php/conf.d/zz-custom.ini for example) via the Ansible role. This could also allow us to override other default configuration for which the Nextcloud Docker container image does not provide tweaking knobs (in the form of environment variables like these).

If you'd like to work on a PR for any of these proposed solutions, please go ahead!

@neokyx
Copy link
Contributor

neokyx commented Dec 17, 2024

I redacted a PR here at least for NC > 30 versions

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

3 participants