Open fakarakas opened 6 years ago
Anyway, The problem was coming from our part when we were parsing the multipart form with the file. To decrease the memory usage we tweaked this buffer :
c.Request.ParseMultipartForm(2 << 20); // here 2MB, default is 32 MB in net.http
@fakarakas : Should you close this issue ?
For what it's worth, I'm experiencing this same issue
I'm seeing this specifically when uploading a large number of small files (000s). Can reduce the impact by reducing concurrency + part size but still seeing memory use grow indefinitely
+1 Also seeing in our production code
We were seeing behavior matching all these symptoms, and it turned out there was a reader we forgot to call .Close()
on. Anyone who is hitting this, look really closely to see if you are leaking unclosed readers or writers.
https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L113
Hello, I am currently writing a webservice to centralize the upload to S3 for different applications. This webservice is using s3gof3r for the upload and download.
I run some stress test with 20 concurrent uploads of 100 MB and i got a large memory usage.
The issue seems to come from pool.go, is there anyway to tweak the API for a less memory consumption ? Thanks
pprof output