Skip to content
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

Open
yilezhu opened this issue Aug 6, 2023 · 6 comments
Open

MinIO API responded with message 'System.OutOfMemoryException' #826

yilezhu opened this issue Aug 6, 2023 · 6 comments

Comments

@yilezhu
Copy link

yilezhu commented Aug 6, 2023

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
2

@kannappanr
Copy link
Contributor

@yilezhu Do you have an exact reproducer for this issue?

@yilezhu
Copy link
Author

yilezhu commented Aug 6, 2023

@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.
In the environment where this issue occurs, Minio is using version 2022-10-24 and the nuget package version is 4.0.7

@lxmou666
Copy link

lxmou666 commented Aug 7, 2023

So am I, the memory is not released after upload the file stream .

@yilezhu
Copy link
Author

yilezhu commented Aug 8, 2023

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.

@lxmou666
Copy link

lxmou666 commented Aug 8, 2023

@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

@martijn00
Copy link
Contributor

Use the 5.0.x version because they have a lot of memory improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants