The most recent version of the Nextcloud app allows for memory size adjustments in the setup environment. I’ve set this to 1024Mb, but I still consistently get an error sometimes that the recommended memory limit is not met. How do I manually adjust the php memory? I could not find a php.ini file. I also know that I shouldn’t change the kubernetes settings outside of the app settings, but I cannot find how to do this otherwise?
I’ve set the php memory in the Nextcloud app configuration file to 1024MB (attached image). But every time I run a CLI, it warns me that my PHP memory limit is below 512MB. When I run some commands, it shows the memory limit to be 128MB.
Normally this can be set in the php.ini file, but there is no php.ini file (using grep).
php -i | grep memory in the nextcloud container gives you? Why do you want more memory, did it fail for being out of memory? I’ve never increased mine so curious.
So there you go, it’s actually set to 128M according to the php -i, but, default is actually 512M. You said some apps won’t run with 128M, but, default is 512M so default not suitable?
So, I see you keep changing the user. This time, do not change to user www-data, no su -l. Just get to the command line and enter the php -i | grep memory command and see what you get, I am root in nextcloud when I get into it. So, run the command right after getting into the shell, NOT as www-data. My guess is you are losing environment settings when you su.
If that reports what you set it to and no message, then instead of the su stuff, try:
I had no idea the memory limit was dependent on the user! Thanks for taking the time to let me know. I’ll research into why that is so I don’t waste your time.
But now I can’t execute occ commands. I’m not an expert in this at all - would you have a suggestion as to how I would do this without changing to www-data user? I’m actually unclear what user is logged into the shell when I open it in the pod shell.
Or can I change the memory limit for the www-data user?