Upload big file consumes all of RAM (WebDAV fail to upload, HTTPS upload very long time)
Steps to reproduce
- Set upload max size to 10GB
- Set RAM of LXC instance less than 10GB
- Upload BIG file (more than RAM), via WebDAV - > FAIL
- 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>
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
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 .
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)
This issue affects me too. I volunteer for testing too.
affects me too, volunteering as well.
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