Nextcloud Desktop Client VERY slow

Nextcloud 27.1.6
Desktop Client 3.11.1

So i have nextcloud running on an intranet server which is connected with 10Gbit to the switch. The clients have 1Gbit connection to the switch.
We are running an internal unbound DNS that directs all requests directly to the internal network ip of the nextcloud server only external use the internet ip

Now when i upload download stuff from the webinterface the speed is as ist should be (around 100MB/s) if i use the desktop client to sync it barelz reaches 1MB/s

The server itself is sporting a ryzen 7600 with 64gigs of ECC ram on an asrock rack server mainboard.

So stuff should be blazing fast, but it aint.

Any idea?

Before digging too deeply, if an internal client was going through your external Internet link (even though it’s not supposed to per your config), what speed would you expect? Is it anywhere in that ballpark is does it have no correlation at all?

sadly that is also not even close. we have 300mbit symmetrical fibre.

i observed something funny today

It still is atrociously slow when in background. But when i bring it to focus by opening settings it speeds up dramatically

just clicking the tastkbar icon for the overview is not enough btw.

The speed depends a lot on several factors. I’d try to compare it to a bare speed if you connect through SCP/SFTP. 20%-50% of that speed should be achievable by adjusting Nextcloud (different caches, database), there are many topics here and in the documentation.

as i have said in the opening when using browser i can upload with 100MB/s no prob. The Desktopclient is the slow part. Which changes when i open settings (where you can watch the upload) then it speeds up to nearly full speed.

May have something to do with process priority being a bit too nice

There were a few reports these days about the performance and that other client (also the owncloud client) achieve much better performance.

And someone opened a topic in the bug tracker:

1 Like

That bug report is me, nothing came of it though.

Well, there is already a fix for one case. Not for you, but it is good to know that yours seems to be different, and with more input from others, they can perhaps narrow down the problem.

2 posts were split to a new topic: Slow upload with desktop client when tray icon is opened

I just had a disastrous experience on this topic. For various reasons I had to realign 23 gigabytes from a PC to my NEXTCLOUD server (dietpi+raspberry) via the supplied APP. After 15 days I had reached about 7 gigabytes on the server (16 remaining). So I decided to put openSSH (with SFTP). Well, in about 4 hours I finished the matter starting from scratch. Nextcloud is not working properly.

Well, I suggested to use the SCP/SFTP performance as a benchmark of your systems limitation (network/disk speed). Nextcloud on top has to manage a database with the files on server and client side, both can somehow mess up a bit to get very slow performance.

Caching helps most with the web interface speed, the redis cache does all the file locking that does have a positive impact on the transfer speed (especially many small files) and the database settings are then important that it uses proper cache sizes to reduce writing operations:
https://docs.nextcloud.com/server/stable/admin_manual/installation/server_tuning.html#id1

If you do uploads, you can check if there are i/o-waits (iotop), general resource consumption (if you give a lot of RAM to php but very little to the database, …). On smaller systems this is more tricky to manage all the resources.

I imagined there were internal alignment works on the database. But the difference is catastrophic. The NEXTCLOUD APP transferred us 500 mega bytes per day. on average. The SFTP protocol aligned 23 gigabytes in 4 hours plus a few minutes for the " ncc files:scan --all" command. Something does not work. Also because it is a excellent software that uses file transfer as its workhorse. However, it is not possible to use a cloud in a serious way like this.

Problem is that the database’s default settings might be not the best for a Nextcloud setup. As I said, with Raspberry Pi, you have very limited resources, that you need to adjust. Especially if your performance is that bad, it should be relatively easy to fix. Once you reached 30-40% of the SFTP performance, it gets harder and harder.