Hi to all,
in the last days I found a lot of this error in my log:
Error | PHP | Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Result.php#119
I think the error depending from photos app that it’s very slow.
Have anyone some experience about that?
How I can try to change memory size in php.ini? and how much memory you suggest to allocate? I don’t understand the value suggested (20480 bytes): it’s not less than 536870912? It’s a value to add to 536870912?
Sorry, but I’m not an expert… I choosed nextbox because I’m not a sysadm.
Bei mir gehts um Face Recognition. die aktuell gesetzen 512mb reichen nicht und ich find ums verrecken nicht die nötige config. Vermutlich gehts mit occ da stelle ich wohl zu doof an.
Für nen tipp wo ich grundsätzlich hin muss wäre ich sehr dankbar.
Ich glaube, danach reicht so ein Restart (kann mich nicht mehr genau erinnern): systemctl restart nextbox-compose
Möglicherweise ist die Einstellung nach jedem Nextbox-Upgrade wieder weg. Seit meiner Änderung kam noch keines. (BTW: Könnte mal wieder, wir hängen ganz schön hinterher!)
Thank you Lothar,
thius morning I tried your solution, now I have a new logging message:
Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)
I noticed that systemctl restart nextbox-compose.service is tremendously slow.
Perhaps all this is due not so much to allocable memory but to the limit of installed physical memory?
It’s never enough!
You can see usage statistics in <your server>/settings/admin/serverinfo. Don’t know your case, but I guess the memory is not an issue. Anyway, my system never came close to its limit yet. (I have the version with 8 GB, though.)
Also just guessing: Restarting the Docker containers maybe just is slow?
After setting the limit to 2048 my nextbox was unusable: why does such a high limit coincide with the physical memory (2Gb) of the system? The connection via ssh was also very slow and sometime went out of time. Now I’m back to 1024 and I try to disable one app at a time to decrease resource use and see (I hope) which one deletes warning messages in the log.
In hindsight I should have invested more in RAM…
Thank you for your suggest and your help.
Most likely there already is part of the memory compressed using zram so you cannot allocate more than physical ram - zram. „free“ command will show you what is free to use for processes.
Hi,
I think your PHP memory limit is being exceeded. You can increase the memory limit by editing your php.ini file. Look for the line memory_limit and increase it, for example to memory_limit = 1024M. The 20480 bytes is the amount that caused the overflow, but the total used memory was already at the 536870912 bytes (512MB) limit. Start by doubling the limit to 1024M and monitor the performance.
Thanks