I really wish NextCloud wasn't written in PHP :ffoxterrified:

Follow

I'm getting so many out of memory errors...

Why would it try to get ALL files in a given folder at the same time?

@absturztaube Seriously... I think I cannot possibly host all my photos and videos on Nextcloud without spending more time than I'd like tweaking it...

Maybe I can do that if I use a ton of subfolders, but that's incredibly annoying.

@absturztaube I really don't want to keep my photos on Google Photos though :blobcatnotlikethis:

@ichii think it this way: you spend some time tweaking it, but you know for certain where your stuff is stored :blobcatshrug:

@absturztaube I'd rather spend my time on other projects though :blobcatflip:

@ichii yeah, me too. but me can't. me have to fight much worse code than nextcloud ever had :blobcat0_0:
@ichii and stuff takes time. i honestly think you should invest the time

@absturztaube I will just try the subfolder approach so that it doesn't get all the files in it in one go.

Maybe divide them by year, month with folders instead of file names :nkoShrug:

@absturztaube Also, not sure how they can say that 512MB memory limit is enough if it runs out of memory so easily.

@ichii @absturztaube If you don't mind your Nextcloud instance having to restart every 24h in order to not run out of memory, I can create an account for you on my web server. But I can't give you much more than 10GB of space :blobeyes:

@mezzodrinker @absturztaube Thanks for the proposal, but I'm running it for my whole family πŸ˜…

@ichii i can open a 28.2 gb folder with 22k files without a problem?

@kura What's your PHP memory limit and server hardware if you don't mind me asking?

@kura For the record, I can open it fine too, but if I try to scroll down it starts to freeze and if I try to pull the folder to my PC with the sync app I start getting out of memory errors.

@kura Yeah, that's how it looked like from my web UI in terms of loading speed.

But I kept getting oom errors when downloading the files. Along with `shell_exec(): Unable to execute 'command -v libreoffice'` (or openoffice) errors even though all the files I was downloading were *.jpg / *.png / *.mp4 :blobfoxconfused:

@ichii dont even have libre office or openoffice on me server lol

@kura I don't either... That's why I couldn't wrap my head around those errors.

@kura I guess I will just remake the whole thing under nginx. I must have nuked and remade my NC instanced over 10 times in the past 3 weeks lmao.

@ichii

1GB mem limit rn, though that was for sth else.
32gb ram and a Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz

@kura I'm afraid Apache + PHP (512MB) just cannot live together on a 1GB VPS...

@kura I was thinking of setting it up with it, but I found Apache easier. Shouldn't have gone with the easier route...

@ichii the php include is this:

location ~* \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.2-fpm.sock; } location @php { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.2-fpm.sock; }

@ichii it shouldn't use that much ram

It's slow as balls though

@ivesen Not sure why I'm getting out of memory errors then.

Installation is pretty much stock with standard NC recommendations.

@ichii I mean
you do have more than 1G of ram right ? :blobcat0_0:
@ichii yeah, my nextcloud instance uses 1.3GB fairly consistently, but a lot of that is from collabora :v
@ichii with 2GB I've not had any OOM errors afaik, and I don't even have swap apparently :bloblul:
Sign in to participate in the conversation
ichii.moe

Open-minded, international instance that is very geeky and enjoys pop culture.

The main topics of this instance include (but are not limited to): esports, gaming, hardware, coding, fantasy, anime, manga, books, movies, TV series, memes, ...

Character limit: 7007
Bigger emojis, and other enhancements!