I have a &#nextcloud instance running on a #RaspberryPi that i can access from the internet. It's slow. How do I figure out what is the bottleneck?

The biggest culprit on raspberry pi's is the disk io speed. This is due to the fact that the ethernet card and usb ports share bandwidth so if you're writing to a usb drive while accepting traffic over ethernet, performance is limited and the built in micro sd card slot has very slow data transfer rates.

Here's a page with some tips for how to improve it github.com/nextcloud/nextcloud

Thank you, I've done all I can from that list.
I am more interested in a more specific test: how do I understand if the problem is my internet connection (which would not be fixed by using more powerful hardware) or the Raspi? Do you have any idea?

Is it running on your home network with port forwarding set up at your router?

@ksteimel yes. I used no-ip to get a free domain name.

If you access your nextcloud instance using the local ip from inside your home network and then compare that to using an outside network that will tell you whether the bottleneck is the network or the rpi.

Typically what I do is I see how long the page takes to load when my phone is on the local wifi, then I turn off wifi and see if it's perceptually longer over cellular. You want to use private browsing though so that you don't use your browser's cache.

I didn't think about the cache issue, that's a good point.


@mprv @ksteimel Have you tried dstat or iostat to monitor disk I/O? sar is also a good thing to see historical data on system utilisation.

iptraf can show you bandwidth utilisation.

Also check top -- is the load average high, is something eating up all the memory?

Those are just a few thoughts. I hope that's helpful! :)

@michelamarie @ksteimel
Thank you for the suggestions! I checked top and every time I interact with the web interface the load shoots up. I'm not sure how to interpret those data, though.

The results of iostat show that the microSD I'm using is more than adequate.

I haven't tried with the other tools, but I suspect that the bottleneck is combination of cpu, memory and bandwidth (in this order).

I'm considering buying an intel NUC, since I want to self host as much as I can. Thank you again!

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!