Nextcloud version: 25.0.2
Setup: Docker-compose with a MariaDB, Redis and the App
Operating system and version: Armbian 22.11.1 Buster
Apache or nginx version: I don’t know, it’s docker-compose with the Nextcloud image
php version: 8.1.13
Hi! My Nextcloud server is running successfully on a ODROID-HC4, which has a 1.8Ghz Cortex-A55 quad core processor with 4GB DDR4 RAM. Initially I thought this would be sufficient for most purposes, but now I have come to realize that for some use cases Nextcloud uses up all the RAM and freezes the server. Among others, I got many problems with scrolling through my pictures and sharing it with other people. I realized that the problem is the generation of the previews. As suggested elsewhere, I installed the following cronjobs:
*/5 * * * * docker exec -u www-data nextcloud-app php /var/www/html/cron.php 30 2 * * * docker exec -u www-data nextcloud-app php /var/www/html/occ preview:pre-generate 30 2 * * * docker exec -u www-data nextcloud-app php /var/www/html/occ files:scan --all
However, this seems to solve the problems only slightly. It seems to me that if I look at the folders on my phone, it runs more smoothly, since the previews to be generated are smaller. However, my goal would be that it does not generate any previews live, but uses only the ones that are already generated. Further, it would be important that I find a configuration which stops Nextcloud to use more memory than available, since in that case it overuses the SWAP and takes hours until the services of the server can be used again. I tried to limit it in docker, but since there are different services, it is not easy to configure. My basic question is, how I can configure my Nextcloud in a way it is suitable for a server with limited hardware, such that it runs smoothly.