Memory_limit setting not working

Hi guys, I am facing the issues that NEXTCLOUD_MEMORY_LIMIT which was set in mastercontainer env variable is not getting applied to nextcloud installation.

[nextcloud container] /usr/local/etc/php contains php.ini-development and php.ini-production as well as a conf.d folder. while conf.d/nextcloud.ini points memory_limit to PHP_MEMORY_LIMIT env variable which is set to 2048M (not NEXTCLOUD_MEMORY_LIMIT… NEXTCLOUD_MEMORY_LIMIT seems to be applied on mastercontainer while PHP_MEMORY_LIMIT on the nextcloud container) but when checking live memory_limit, it is 128M which seems to be the php.ini-production value.

i am using aio v10.9.0 and all the containers get restarted every day after borg backup

Checking it how?

And please post your Compose (or run command), etc.

Also please confirm:

1 Like

Hi jtr,

thx for your message and sorry for any misunderstandings.

I think, that might be kind of false alarm.

Rechecked PHP section in /admin/serverinfo, showing 2GB memory limit, rechecked php -i | grep memory_limit on the aio-nextcloud container, showing 2048M which is all fine.

But you get warned about current PHP memory limit being below the recommended value of 512MB on each occ command which seems to be kind of weird but as long as it affects only the occ comands, I guess, that is not a big deal…

Cheers,
David

How, specifically, are you running occ?

1 Like

eg. sudo -u www-data php ./occ groupfolders --help being connected to aio-nextcloud container shell

That’s why you’re seeing that warning. Don’t use sudo to run occ in the container. Instead, exec in as the appropriate user www-data. That’s why I linked to the docs for running occ in AIO above. :wink:

1 Like

my bad, thx

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.