0
why is Nextcloud so slow? (forum.bruvland.com)
submitted 1 year ago* (last edited 1 year ago) by invaliduser@forum.bruvland.com to c/selfhosted@lemmy.world

I have setup so many instances over the months on different servers and the web ui always takes 40s to a minute to load per page I have always used redis for caching and the best methods even the aio docker image(s) are really slow.

kind of just been living with it for the past month or so but its really annoying when others are saying theirs takes seconds to load.

edit: totally didn’t forget to include a body

top 32 comments
sorted by: hot top controversial new old
[-] StefanT@lemmy.world 4 points 1 year ago

You know their tuning page? I did several of their suggestions and they helped me. https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html

[-] anteaters@feddit.de 3 points 1 year ago

Cannot confirm this. For me nextcloud us very snappy and fast.

[-] humancrayon@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

I am with you as well. I’ve had my instance up for 3 years on 4 cores and 8GB ram and each page loads in seconds. I’m not running anything crazy on it either (stock + 3ish extras). Hard drives are 4x sas in raid10.

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

ah lucky i did sort of solve my problem using the nextcloud docker image for a community and it's fast that is stripped down on all the apps though so probably going to give the docker container a go on my server

[-] ShittyKopper@lemmy.w.on-t.work 2 points 1 year ago

Because it's ✨ modern ✨ and ✨ enterprise ✨

Most new software not explicitly made for and by hobbyists will assume "just throw more hardware at it" to be a valid solution to inefficiency, and unfortunately Nextcloud (especially with any of the office extensions) seems to be heading that way.

[-] MangoPenguin@lemmy.blahaj.zone 2 points 1 year ago

I've experienced the same, even the hosted/paid instances Nextcloud recommends are very slow.

I think it's just not built to be fast.

[-] Moonrise2473@feddit.it 1 points 1 year ago

On my server it's way much faster than WordPress (ok, being faster than the most bloated CMS is not that hard...)

[-] RandomLegend@lemmy.dbzer0.com 2 points 1 year ago

...this is a new low for low-effort posts.

Wow.

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

haha sorry still getting the hang of lemmy and accidently submitted it with no body

[-] RandomLegend@lemmy.dbzer0.com 1 points 1 year ago

Then, sorry - i thought this was a legitimate shtpost.

[-] Riktastic@laguna.chat 2 points 1 year ago

Have you tried integrating a caching mechanism? Or tried assigning more memory to PHP?

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

haha no problems

[-] poVoq@slrpnk.net 2 points 1 year ago

Uhm, you will need to tell us more about your hardware or setup.

I wouldn't describe my Nextcloud as especially fast or optimized, but it is only around 20s from the login screen to being able to use it. And once you are logged in it is quite fast.

[-] AbidanYre@lemmy.world 1 points 1 year ago

I had that same issue until I disabled the collabora extension. It's much, much better now.

[-] Moonrise2473@feddit.it 1 points 1 year ago

I'm using their apache docker and i don't see many speed issues.

I see issues instead with WordPress, my blog with 15000 pages but just 1000 visits a month takes 30 seconds to load a single page...... Could not manage to improve it, even with extensive caching, percona, redis, and so on...

One day I need to find the strength to migrate to Hugo (the automated tool makes a mess)

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

oh yeah i have a small community and setup an archive with the apache nextcloud docker container but then forgot about it then yesterday i was trying to install an alternative and noticed it so took a look at the nc container and it was so fast its crazy how the vm i made with 1vcpu and 1GB ram outperformed a vm running on way more powerful server with nextcloud.

oof yes wordpress its so slow I had tried everything and it would be so cool too, I see these wordpress site builders and websites running wordpress god knows how they are so fast but a +1 for hugo i use it for my blog ~~which only has 2 blog posts with about 1 view that isn't a bot/scraper~~

[-] MaggiWuerze@feddit.de 1 points 1 year ago

What Hardware are you using? My nextcloud takes at most a couple seconds and has only been getting faster these last few updates.

[-] Auli@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)

What database? I use Mariadb as a backend and have never had slowness like you describe.

[-] Hopfgeist@feddit.de 0 points 1 year ago

Even on my obscure setup (NetBSD nvmm virtual machine running on NetBSD host using zfs) I get decent performance with PostgreSQL, and minimal PHP opcache and redis tuning. One thing is not to use too many php-fpm processes. I host a small private server for family and friends, and usually limit the number of processes to 8. The VM has 8 GB of RAM and 10 CPU cores, but the cores are slow by today's standards.

Very long delays on otherwise decent hardware (i. e. anything newer than 10 years) always smell of DNS problems, if the symptom is a very long wait time with nothing happening, and then a reasonably fast page rendering / UI loading.

I'm quite happy with the performance, although some of the regular tasks seem to consume excessive amounts of "system" CPU time. But response time and preview rendering are all acceptable.

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

ah ill have to take a look at what i have set the php-fpm processes too might have set it to something stupidly high not knowing because high = better right? haha

[-] RandomLegend@lemmy.dbzer0.com 0 points 1 year ago

Take a look into the logs, anything suspicious there? Maybe some timeouts, read/write errors, unresponsive tasks?

What does your webserver say about resource usage for nextcloud? If you load it up, does it stay super low like not even giving it enough resource?

[-] invaliduser@forum.bruvland.com 1 points 1 year ago* (last edited 1 year ago)

cpu is low 0.2% but ram seems fine using 2GB and looking at the logs in the web ui the only one i have really gotten is

[PHP] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 7 FATAL:  terminating connection due to administrator command
server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request. at /var/www/html/3rdparty/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php#91

PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json
from 192.168.200.200 by admin at 2023-06-24T15:08:05+00:00
[-] Wander@yiffit.net 0 points 1 year ago

I'm not running nextcloud myself, but have you checked that the database settings are scaled to match your server's resources?

[-] invaliduser@forum.bruvland.com 0 points 1 year ago

yeah i use mariadb with it and messed with the config but still nothing more than maybe 1 second same with enabling caching with redis and editing the php config i did get it down from 3-4 minutes though so thats something

[-] Wander@yiffit.net 0 points 1 year ago

What CPU / RAM / DISK resources do you have allocated?

[-] invaliduser@forum.bruvland.com 0 points 1 year ago

4 cores 8GB ram and 500GB i looked at a resource monitor and the cpu barely hits 10% when im trying to load ages and the server is running other things

[-] Wander@yiffit.net 0 points 1 year ago

Next thing that comes to mind is web server settings / threads / workers. But I'm afraid I can't help you more since I'm not familiar with Nextcloud.

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

yeah i have increased them to the recommended settings and tried adding some but still cant get it to constantly load under a minute. i would put it down to the server being 100s of miles from me but even my server running in house is slow

[-] operator@kbin.social 0 points 1 year ago

While 40-60s is definately not normal, Next loud is heavily bloated with a bunch of plugins and features many people don’t need. Go through the plugins page and see what you really need.

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

ha this is exactly what i did on the instance i setup for a community yesterday and its really fast so im probably going to clone that setup on my server just with the apps and thigns i use

[-] restlessyet@discuss.tchncs.de -1 points 1 year ago

If you only want online file storage and sync, you may want to try Seafile. It's a lot faster and has been rock solid since 10+ years for me. Not viable if you need some of the many nextcloud exentions though

[-] invaliduser@forum.bruvland.com 1 points 1 year ago

ah i hear about Seafile a lot yeah its a shame i use the nextcloud things and im use to their ui its handy for quickly sharing things

load more comments
view more: next ›
this post was submitted on 24 Jun 2023
0 points (50.0% liked)

Selfhosted

39677 readers
460 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS