Nextcloud is very slow on Linode
-
Hi, I'm new here and happy to join Cloudron.
I've setup Nextcloud with Cloudron on my Linode 4GB plan (shared CPU: 2 Cpu, 4gb Ram).What's happening:
Logging in to my Nextcloud takes ages 3-5 minutes, and opening dashboard, mail etc also takes such a long time too. I tried running other apps such as Matomo, Freescout and it works totally fine.What I observed:
I am not sure if this is enough for Nextcloud but it's running pretty slow since day 1 even without any apps. I have around 6 apps in Cloudron since then, I've checked the system info, my CPU usage is around 10-20% and Ram usage is about 2.5gb on average.What I did
I did not do any special modification, just completely vanilla install 1 click setup of Cloudron on Linode, and that was it.
I've installed several apps in Nextcloud but nothing marked as unstable.Misc details:
My server is in Singapore and I am located in Malaysia, I checked thePlease advice me what I should do, because if it's the server performance, I'm tempted to try on other provider.
Do I need to do some tuning/ optimisation to make it work better?
In this case of I need to change server, can I make a snapshot of this drive on Linode and restore it on other server?Any recommendation is much appreciated!
Thank you
-
@aizat not sure it helps but I don't see this performance with Nextcloud on Cloudron. 30 seconds would be slow for me.
My first course of action in this case is always to reboot the VPS in the linode control panel or via ssh. But maybe you have done that already.
I used to use Cloudron on Linode and I did not see such problems. Although I moved away from Linode, I would not say they are bad. Just more expensive than they need to be.
If you have Cloudron installed, you can configuire backups to a different location (wasabi, scaleway, even Linode S3 compatible if they have it) and then on the new hosting provider, install cloudron and do a restore. It's in the docs but people will help here if needed. I just did this and it was seamless transfer (but you have to take care of DNS changes if needed)
-
@aizat 2vCPU and 4Gb ram may be a little low, but I don't think that is the cause. Maybe others here will advise.
I think I started cloudron on linode with 8Gb ram, and then moved to other providers with 16Gb and now on 32Gb but that was inline with my increasing use of Cloudron. I now have 64 apps on Cloudron including 2 instances of Nextcloud.
32Gb is not expensive with SSDNODES. Actually cheaper than Linode 8Gb.
-
There is this note about a slow login, from quite awhile ago, but I wonder if it might be related to your situation?
Re: Nextcloud login very long
Good luck! -
@timconsidine said in Nextcloud is very slow on Linode:
2vCPU and 4Gb ram may be a little low, but I don't think that is the cause. Maybe others here will advise.
I had those specs with DigitalOcean not too long ago and my Nextcloud ran fine.
I'm thinking it's one of the addons he has that's causing the slowness.
Can you disable the Nextcloud apps one by one and test if things improve?
Also, how much RAM have you allocated for Nextcloud in Cloudron?
-
Update
Problem fixed with restarting Linode. Probably it was some updates in the system or server that needs a good flush. I noticed it uses more RAM for working with daily tasks. Planning to use NextCloud talk soon, so I think this will be a CPU intensive feature. Will soon upgrade my VPS.
If you have any affordable and good VPS, do give a shout@timconsidine Hi! Thank you so much for the reply & amazing tips! Sorry for getting back so late, I only saw a notification for replies to my email today.
Yes you are right, I restarted the Linode and it worked much much better now.
Currently there are only 3 of us in the team, but we also want to share some files and work with clients with Nextcloud. 4GB will get choked pretty soon.And wow SSDNODES really have good price.
Most of my websites or web apps are in Linode. As you said, it's expensive. I was thinking about Contabo VPS M, but I heard mixed reviews about them. I'll give them KVM / X-LARGE a try.
For storage: Wasabi - yes I've tried the trial too, they seem quite good and price is reasonable, will try to integrate them sometime next week.@humptydumpty You are right on this point, but that was before the slowness started, I had to remove an app. Currently I only have the featured ones like deck cards, notes, and kanban add-on. I've recently tried out Collabora but I think it's resource hungry too, so I removed for now, and will add it back once I've upgraded my VPS. I did not allocate any RAM for NextCloud in Cloudron, I thought it would pull more if it needed more. Sometimes I don't run it, and use other apps.
@scooke Yes, I've checked this post earlier, I think my problem had more to do with resources that NextCloud needs vs what I have. But restarting helps.
-
@aizat I moved my VPS from DO to Contabo (US central location) on the VPS NVME M plan that has 6 vCPU Cores and 16 GB RAM. If you want to spend the same $20 you're paying with DO, you can get 8 vCPU Cores and 30 GB RAM with Contabo (both have NVME storage).
Yeah, make sure to manually set the RAM Nextcloud is allowed to use. It can't exceed the limit you set in there. The app crashes once it reaches the threshold. This applies to any app on Cloudron so manually tweak them. I find that apps will crash at one point or another using the default values.
BTW, look into Syncthing (file sync), Wekan (kanban), Vikunja (kanban), and Matrix/Element (instead of Nextcloud Talk). All available on Cloudron.
-
@humptydumpty Thank you so much for the tip. Will upgrade sometime this week
-
@humptydumpty said in Nextcloud is very slow on Linode:
BTW, look into Syncthing (file sync), Wekan (kanban), Vikunja (kanban), and Matrix/Element (instead of Nextcloud Talk). All available on Cloudron.
I certainly agree that Nextcloud can get bloated and even unstable when too many plugins are enabled. I use it heavily for file storage and shared folders, but for almost nothing outside of this.
And definitely the other apps are worth exploring.