-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
warning: PHP OPcache module is not properly configured: OPcache buffer is nearly full #1965
Comments
I destroyed and re-created my Nextcloud app container and the warning went away. I don't have a repro. Maybe it was running for a long time? |
This error message popped up again, but the server seems to be working fine. No other symptoms that I can tell. |
Will the problem be fixed or is there a solution for this error? |
@R7JANV1 are you seeing this warning? |
Yes! |
Ok. @R7JANV1 , can you add any details about your setup, what you've tried or researched already? Also--side note--for a "me too" comment, consider adding your thumbs up to the original issue description. The obvious solution (as rawtaz pointed out in #nextcloud on LiberaChat IRC) is to increase the value. But I have questions--I just added them to the description. I'd like to know the root cause. If the root cause is script(s) in a default nextcloud install, perhaps https://www.saotn.org/optimize-php-opcache-configuration/ might help us figure this out. I tried
The scripts consuming the most memory in my instance are:
1 is probably core nc code, 3 is something I need for calendar, and 2 is for phonetrack. If phonetrack used 10x that, it might be worth disabling. Skimming the rest of the scripts, it looks like memory usage is pretty well spread out, so perhaps the warning is just due to the number of scripts period (as opposed to a particular misbehaving script or app). |
I recently migrated my Nextcloud All in One instance from my Ubuntu Server to TrueNAS. There I linked a Nextcloud container and a database container using the built-in Kubernetes Docker function and migrated the data and database of the old instance to the new instance on TrueNAS. |
Have you tried changing On my end I've decided to ignore the warning until I see some other symptom besides the warning itself. |
Warning still exists on NC 27.1.1 |
For me, it's an error - NC 28.0.8. Interestingly - maybe due to my own ignorance - I don't have a php.ini files in /usr/local/etc but I do have My config is:
The opcache thing used to be a warning but since some time (idk when or why) it has become an error. |
I'm getting a warning on the
Security & setup warnings
page (/settings/admin/overview
). First I've seen this one. In the past I've seen warnings about string buffers (mentioned in other issues).Security & setup warnings
It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.
There are some warnings regarding your setup.
opcache.memory_consumption
to your PHP configuration with a value higher than128
.Please double check the installation guides ↗, and check for any errors or warnings in the log.
Check the security of your Nextcloud over our security scan ↗.
I'm using:
nextcloud:25.0.5-apache
1dd8f331fb758655eb3b2e6388b7cff26f2a90dc0bec25f8d2af1dbdbf538234
opcache.memory_consumption
is how many megabytes to use in shared memory storage for OPcache. The minimum is 8 and the default is 128.Questions:
opcache.memory_consumption
should be increased. How much? Is there a reasonable upper bound besides just "however much system memory you can spare"? What's the best practice here?The text was updated successfully, but these errors were encountered: