83
submitted 8 months ago by otter@lemmy.ca to c/selfhosted@lemmy.world

I hear people say that about Nextcloud often, which is part of why I haven't bothered setting it up yet.

Is there a technical reason why it's slow and clunky? Any problematic choices with how it was built?

top 50 comments
sorted by: hot top controversial new old
[-] nbailey@lemmy.ca 56 points 8 months ago

It needs some tweaks to be snappy. The defaults are really bad.

  • change database from SQLite to a proper database like MySQL or Postgres, and configure the database server to use your memory fully
  • increase the PHP memory limit from the default (128M on many distros) to >1G, the more the better
  • install APCu in-memory cache for PHP
  • add Redis as additional cache
  • turn off the antivirus extension, if installed (ClamAV is useless)
  • use http/2 on Apache/nginx to increase performance with multiple connections

https://docbot.onetwoseven.one/services/nextcloud/

[-] nutbutter@discuss.tchncs.de 7 points 8 months ago

Thank you for these suggestions. But I have a few questions.

How can I do the 2nd and 3rd point if I am using docker/podman containers?

Why is ClamAV useless?

[-] nbailey@lemmy.ca 17 points 8 months ago

Not sure how to do that in docker, I’ve run mine as a plain old PHP-FPM site for years and years. It might be something that can be tweaked using config files or environment variables, or might require building a custom image.

ClamAV is slow and doesn’t catch the nastiest of malware. Its entire approach is stuck in 2008. It’s better than nothing for screening emails, but for a private file store it won’t help much considering that you’ll already have the files on your system somewhere. And most importantly, it slows down file uploads 10x and increases CPU load substantially. The only good reason to use ClamAV for nextcloud is if you will be sued if you don’t!

[-] possiblylinux127@lemmy.zip 3 points 8 months ago

ClamAV is good for detecting simple threats. However, I hear it eats ram.

[-] Nyanix@lemmy.ca 2 points 8 months ago

This has me curious, not to derail the topic, but I always hear that ClamAV is the best way to go for Linux. Is there a free solution that you would recommend in place of it?

[-] possiblylinux127@lemmy.zip 3 points 8 months ago

I think the best solution is to use good internet hygiene

[-] sabreW4K3@lemmy.tf 3 points 8 months ago

Out of curiosity, why isn't this stuff done by default?

load more comments (9 replies)
[-] Strit@lemmy.linuxuserspace.show 23 points 8 months ago

Likely because it's mainly written in PHP and the default database is SQLite, which is not great for large deployments.

But I use Nextcloud daily on a low end machine and I don't think it's that bad.

[-] Vub@lemmy.world 6 points 8 months ago

SQLite sure but I doubt PHP has any negative impact.

[-] douglasg14b@lemmy.world 2 points 8 months ago

PHP for sure can have a negative effect depending on how they are handling their data access through.

The application code itself running on PHP probably isn't a problem but the influence that PHP may have over your data access patterns can be a source of significant performance problems.

load more comments (1 replies)
load more comments (2 replies)
[-] MangoPenguin@lemmy.blahaj.zone 21 points 8 months ago* (last edited 8 months ago)

I assume it's just not built to be fast, because it's still slow even with MySQL, Redis, high PHP memory limits, a fast CPU and NVMe storage, and so on.

Last time I tested it I had a load time of 1-2 seconds just to bring up the files interface, it feels laggy no matter what. And syncing a folder with ~50k files and 40GB or so in size takes a very long time compared to Syncthing or just syncing over SMB.

load more comments (1 replies)
[-] ShortN0te@lemmy.ml 18 points 8 months ago

Use redis and it will feel smoother.

[-] plasticcheese@lemmy.one 6 points 8 months ago

Yep. When I first set up my instance, I couldn't believe how slow it was. I set up redis using the Nextcloud documentation and its like butter now.

[-] GravitySpoiled@lemmy.ml 12 points 8 months ago

Nextcloud is slow and clunky if you run it on a banana.

Run it on a "normal" server and everything is smooth.

[-] muelltonne@feddit.de 11 points 8 months ago

Yeah, and don't pretend that comparable software like Google Drive, Sharepoint or Dropbox is faster.

load more comments (11 replies)
[-] jr52@lemmy.world 3 points 8 months ago

I tried running nextcloud on an allwinner RiscV chip and it was dead slow lol

[-] possiblylinux127@lemmy.zip 2 points 8 months ago

In fairness anything is slow on lower end hardware. The tradeoff is that it is very power efficient

load more comments (4 replies)
[-] sardaukar@lemmy.world 8 points 8 months ago

I keep trying it every couple of years to see if it works better, but nah. Even with MySQL/PG + Redis, it's still slow and clunky. Maybe in 2026

[-] possiblylinux127@lemmy.zip 7 points 8 months ago

Its not slow and clunky for me

[-] Sibbo@sopuli.xyz 7 points 8 months ago

If you want fast file sync between computers, use syncthing

load more comments (1 replies)
[-] mhzawadi@lemmy.horwood.cloud 5 points 8 months ago

I have been running nextcloud for some time, it was running very quickly. But the v28 update seems to have broke some of the extra apps, like groupfolders.

That said, it's very much a system that needs good hardware to run it well

[-] redcalcium@lemmy.institute 3 points 8 months ago

Yeah, it's been broken since v27. I'm still on v26 because of this.

[-] SeaJ@lemm.ee 5 points 8 months ago
[-] bjoern_tantau@swg-empire.de 4 points 8 months ago

PostgreSQL makes it faster still.

load more comments (2 replies)
[-] angrynomad@infosec.pub 5 points 8 months ago

What I dont get is why so many years later, their android app still won't auto sync

load more comments (12 replies)
[-] Decronym@lemmy.decronym.xyz 4 points 8 months ago* (last edited 6 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
Git Popular version control system, primarily for code
HTTP Hypertext Transfer Protocol, the Web
NVMe Non-Volatile Memory Express interface for mass storage
SSD Solid State Drive mass storage
SSO Single Sign-On
VPN Virtual Private Network
nginx Popular HTTP server

6 acronyms in this thread; the most compressed thread commented on today has 4 acronyms.

[Thread #580 for this sub, first seen 7th Mar 2024, 12:55] [FAQ] [Full list] [Contact] [Source code]

[-] BrightCandle@lemmy.world 4 points 8 months ago

It has been slowly improving. It used to be a lot worse but I have a lot less issues with it now than I did before all the changes. Its not the fastest best way to do anything, there are better calendar, file sync, email etc etc applications out there in every category that run better but its also quite an easy way to make a lot of things happen.

[-] ikidd@lemmy.world 4 points 8 months ago

Nextcloud is fine. Use the All-in-One master container, it's faster than any other way I've installed it. I've tried every method from bare metal to docker to NextcloudPi and it's the fastest and easiest to maintain.

[-] Gooey0210@sh.itjust.works 3 points 8 months ago

https://downloadmoreram.com/

And maybe CPU, and also need some good old fine tuning

[-] MTK@lemmy.world 3 points 8 months ago

I run the official docker with mariadb and it was never an issue for me

load more comments
view more: next ›
this post was submitted on 07 Mar 2024
83 points (95.6% liked)

Selfhosted

40152 readers
570 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