Skip to content

Memory leak issue with Upload class when uploading large files (more than 200 MB) #7179

@kasir-barati

Description

@kasir-barati

Checkboxes for prior research

Describe the bug

I am using this SDK and when my app tries to upload a really large file I can see that the memory consumption is increasing and then we have also spikes.

Image

Note

This is what I can see in portainer, but for local env I am just relying on logs and docker stats command.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected], @aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

NodeJS: 22.12.0

Reproduction Steps

Clone this repo and follow these instructions.

Observed Behavior

Docker kills the container since it exceeds the memory limitations.

Expected Behavior

I am not sure if this is the intended behavior of this class and if I am using Upload class correctly.

But I expects it to just work. Or maybe I should not use PathThrough 😕.

Possible Solution

IDK.

Additional Information/Context

What I hope to see is that I can still use Upload class without this memory issue.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions