-
Notifications
You must be signed in to change notification settings - Fork 291
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
javascript client takes too much memory upon call to putObject #1045
Comments
hello, any update on this? |
I could not replicate locally. will try again when i get sometime. |
I have a similar problem.
|
that's interesting, I think that's probably due to this line Line 1202 in b74894e
which defaults to the maxObjectSize when no size is passed |
Yes the solution is to always pass a size argument. or use a Buffer/string as input, or use API fPutObject, it will stat the file size. Otherwize minio-js don't know the size of object and will just assume you are tring to upload a 5T file and use 500M as partSize to avoid S3 multiple upload limit. that means if you want to upload a file with GBs size, and you the example prakashsvmx use in previous issue, he always pass a size argument so minio-js doesn't consume huge memory https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html personaly I think |
The implicit use is normal, this is true with all SDKs such as AWS SDK - AWS SDK forces you to provide a size which > 0 so that it's easier to calculate. Parallelism is necessary by default. However, what we can do is on our end simply never do parallel for the stream that doesn't provide the correct length. We simply provide an added functionality by asking for a All of this is nice to have you should ideally provide the right size of the object. Memory usage is simply needed because that's what AWS S3 API mandates
// cc @prakashsvmx |
Thank you @harshavardhana , i will check |
please try the code of #1043 (comment)_ to reproduce the issue described at #1043
The text was updated successfully, but these errors were encountered: