I had Nextcloud 25.0.3 running in a Docker Container on a Lenovo ThinkCenter:
CPU: Intel(R) Core(TM) i3-4130T CPU @ 2.90GHz (4 cores) Memory: 16 GB Soild-state 500 GB Harddive
My Nextcloud setup has Maria DB 10.6.12 running in its own container for the database, and a letsencrypt container to proxy traffic.
All of this is connected via a Docker Compose File.
I recently acquired an HP ProLiant DL360 G7:
CPU x2: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz (6 cores / 2 threads) Memory: 72 GB RAID 5 with 1.2 TB Storage
I split out a portion of HP ProLiant Server for a NixOS VM to be used as the new host for my Nextcloud Docker Containers using libvirt/KVM/virtmanager.
Virtual Machine specs:
CPU: 8 cores Memory: 16 GB Storage: 45 GB for OS and passthrough to host's 1.2 TB storage for persistent Docker volumes
Here is where I’m getting stuck:
I only have two users of my Nextcloud instance.
On the Lenovo ThinkCenter, the Nextcloud UI pages loads were under 1 second, and the “Load” under Administration → System was only between 0.15 - 0.80. Additionally, I only had local Memcache/APCu set up. Using
docker stats the CPU for the Nextcloud web container, and all other Nextcloud-related Docker containers was below 1% with the occasional spike higher.
After moving Nextcloud to the Virtual Machine inside the HP ProLiant Server, pages take 7-10 seconds to load, and the “Load” under Administration → System is always above 2.0; usually between 2.5 - 5.8. The CPU usage via
docker stats for the Nextcloud web container is always 8% and fluctuates between 16%-24% when idle. All other Nextcloud Docker Containers (letsencrypt, mariadb, redis, collabora) on the VM stay below 1% when idle. I have since added Redis for caching with no noticeable impact.
I have essentially moved my Nextcloud Docker containers from one machine to another with more resources, yet my performance is drastically worse
Any ideas on how to troubleshoot this? Or anyone run into something similar? Why would only my Nextcloud Docker container be so drastically impacted by a move from one machine to another?