-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High RAM cache usage when uploading files #153
Comments
How large chunks you are using? |
Chunks are |
Could you share a code example? I can try to reproduce the issue. |
Hi, I was debugging it more and so when you start the upload and open What is maybe unique to my setup is that I am using laravel horizon (https://laravel.com/docs/10.x/horizon) inside laravel sail (https://laravel.com/docs/10.x/sail) I don't know if this is the cause of this issue, maybe this is expected behavior... The code is from your example:
|
The code for merging is using buffer so it should not get so large. I will try it but thanks for pointing sail/horizon. |
If you need any help with setting that up please let me know and I can help you :) |
BTW. One more thing rams get full while uploading the files not then merging starts... |
What steps will reproduce the problem?
Upload a large file (10GB +)
What is the expected result?
That upload will be successful
What do you get instead?
I get HIGH Ram cache usage
After the last chunk nginx responds with 502 and that's because files cant be merged into one file since there is no RAM left to do that.
502 error happens on
$save->isFinished()
Additional info
The text was updated successfully, but these errors were encountered: