Passing a Stream to PutObjectAsync appears to read the entire stream into memory causing memory usage to spike when uploading large files:
This memory is not freed when the PutObjectAsync call returns nor when the stream is disposed. Sequential uploads causes the memory usage to grow further. The memory does seem to be released later.
Possibly related issues: #564 #710
Passing a
Stream
toPutObjectAsync
appears to read the entire stream into memory causing memory usage to spike when uploading large files:This memory is not freed when the
PutObjectAsync
call returns nor when the stream is disposed. Sequential uploads causes the memory usage to grow further. The memory does seem to be released later.The call used for testing:
Is there any way to make Stream uploading more efficient? Is there any way to control the memory usage?
Thanks in advance.