62.5 Nextcloud Snap Configuration
20250622
Increase PHP Memory Limit
In my log file I had been seeing the entries:
Request used more than 300 MB of RAM: 495.9 MB
Allowed memory size of 536870912 bytes exhausted (tried to allocate
327680 bytes) at
/var/snap/nextcloud/48223/nextcloud/extra-apps/recognize/lib/Clustering/MrdBallTree.php#456
Checking the PHP memory limit:
$ sudo snap get nextcloud php.memory-limit
512M
The memory can be increased with:
The alternative is to edit the config.php
file:
'php_memory_limit' => '1024M',
The error might be generated from the recognize
app during
clustering of facial images. We could run the clustering manually with
a smaller batch size:
This did not result in the memory problem from my testing.
The automatic clustering can be disabled with a setting in
config.php
:
The manual command could then be run as required, or by using cron.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0
