16GB will stop your Nextcloud swap thrashing
Yes, 16GB should fix it.
I run Nextcloud on Ubuntu too. 8GB is fine for light use — a few users, small file syncs. But when you throw a big folder at it, the system starts caching every file entry, running PHP workers for indexing, and juggling database queries. 95% memory means swap is getting hammered, and that’ll tank performance.
16GB gives you breathing room. Not because Nextcloud needs all 16GB, but because you avoid hitting the swap ceiling during spikes. The indexing process is memory-hungry — it loads directory
