-
Notifications
You must be signed in to change notification settings - Fork 235
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
MinIO API responded with message 'System.OutOfMemoryException' #826
Comments
@yilezhu Do you have an exact reproducer for this issue? |
@kannappanr I am currently unable to reset this situation. It is a problem with a certain environment, and it was good when I debugged locally. |
So am I, the memory is not released after upload the file stream . |
Thank you for your reply. When I uploaded, I tried using the using statement to release stream, but I didn't use the using statement to respond to the stream's release when obtaining files. Let me try and see the effect. |
@yilezhu inject "MinioClient" by "Minio.AspnetCore" to upload the file stream, the memory is not released, and use "new MinioClient" to upload the file stream memory will be released |
Use the 5.0.x version because they have a lot of memory improvements. |
I'm use Minio nuget version is 4.0.7..
When I uploaded an 80MB file, it was successful, but when I getthe file by ·getObjectStreamAsync·, I reported the following error.
“MinIO API responded with message=Connection error:Exception of type 'System.OutOfMemoryException' was thrown” .
But in reality, my program only occupies about 300M of memory,can you provide me with some troubleshooting ideas.
Here is the code for me to get the file
The text was updated successfully, but these errors were encountered: