server icon indicating copy to clipboard operation
server copied to clipboard

Upload big file consumes all of RAM (WebDAV fail to upload, HTTPS upload very long time)

Open ZorgeR opened this issue 10 years ago • 6 comments

Steps to reproduce

  1. Set upload max size to 10GB
  2. Set RAM of LXC instance less than 10GB
  3. Upload BIG file (more than RAM), via WebDAV - > FAIL
  4. Upload BIG file (more than RAM), via https - > Take a looooooong time (go to swap?) but success uploaded

Expected behaviour

Uploading start at blazing fast speed and quickly done.

Actual behaviour

Uploading start at blazing fast speed, but when all RAM consumes, it go insanely slow on https, and fail on WebDAV.

Server configuration

Operating system: CentOS 7.2 LXC Web server: nginx Database: Maria DB PHP version: 5.5 or 7.0 Nextcloud version: 9.0.53

Updated from an older Nextcloud/ownCloud or fresh install: Updated Where did you install Nextcloud from: website Signing status:

Signing status

No errors have been found.

Are you using encryption: no

Client configuration

Browser: Any

Operating system: Any

Logs

Web server error log

Nextcloud log (data/nextcloud.log)

Nextcloud log

Exception: {\"Message\":\"HTTP\\\/1.1 400 expected filesize 3047809024 got 629211136
Exception: {\"Message\":\"HTTP\\\/1.1 400 expected filesize 4073515008 got 659783680
</details>

ZorgeR avatar Aug 09 '16 20:08 ZorgeR

Related to the following Owncloud issue: https://github.com/owncloud/core/issues/25181

And as far as I understand, to resolve this issue, the following pull request had to be merged in advance: https://github.com/owncloud/core/pull/21237

phsc84 avatar Aug 10 '16 05:08 phsc84

I think this depends on the PHP and webserver implementation. Some webservers might cache the full request in ram before it is passed to fcgi.. same with proxies or av software..

phsc [email protected] schrieb am Mi., 10. Aug. 2016, 07:09:

Related to the following Owncloud issue: owncloud/core#25181 https://github.com/owncloud/core/issues/25181

And as far as I understand, to resolve this issue, the following pull request had to be merged in advance: owncloud/core#21237 https://github.com/owncloud/core/pull/21237

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/802#issuecomment-238767230, or mute the thread https://github.com/notifications/unsubscribe-auth/AAW7Uf0GKP6tP1e5XOQtEw72JpmSYIukks5qeVzygaJpZM4JgfTM .

Spacefish avatar Aug 10 '16 06:08 Spacefish

I volunteer for testing the WebDav PUT once it is in Nextcloud, as i also suffer from this issue (small ARM device with only 2 GB RAM, -> i am never sure if the upload succeeds). For now i need a big swapfile that slows down the upload speed for LAN devices (won´t be visible on the net, because normally the upload is slow anyways)

derkostka avatar Aug 18 '16 10:08 derkostka

This issue affects me too. I volunteer for testing too.

petre2dor avatar Sep 23 '16 06:09 petre2dor

affects me too, volunteering as well.

joernroeder avatar Dec 25 '16 10:12 joernroeder

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

I'm using nc19 with php7.4 on very slow mem (4GB) and can upload files of >8GB

skjnldsv avatar Aug 20 '20 07:08 skjnldsv