-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Reduce multipart form upload memory usage! #309
Comments
@n0v3xx Thank you for sharing your experience. I will look into it when I get a chance. If you're interested, you can take a stab at it too. |
@jeevatkm As far as I can understand, we need to implement an alternate of |
@amarjeetanandsingh This issue created/reported to propose to use |
Can confirm this is an issue (pprof) top |
@bartzz Thanks for sharing profiling info. Yeah, its good to optimize memory usage for multipart file upload follow. |
Hi @jeevatkm , this might be a good candidate for V3, wdyt? |
Agreed @segevda |
I guess... that extensive upload memory usage killed right now my process...
any ideas for a quick fix? my case is that I need to upload 17 GB file :/ and my tool using Resty need to handle that... |
@krystian-panek-wttech I don't think there is a quick fix at the moment. Either use chunked upload on the client or create an endpoint that doesn't use resty for big uploads. |
|
@krystian-panek-wttech https://api.video/blog/tutorials/uploading-large-files-with-javascript/ Upload your 17GB as ~50-100MB chunks and create a single file from them on BE |
I have no way to update BE; probably the only way to go for me is: https://medium.com/@owlwalks/sending-big-file-with-minimal-memory-in-golang-8f3fc280d2c if it will work for me I will consider contributing this approach to Resty somehow/if possible |
the approach from medium.com works well ;) I am convinced that it should be incorporated into Resty someday. |
Done, refer to PR #879 |
Hi,
the problem with this multipart form implementation is that they need huge amount of RAM. You should include an option to switch to a diffrent method where you can use io.Pipe to stream the file.
Would be great if you can implement this.
The text was updated successfully, but these errors were encountered: