Skip to content

AWS S3 CRT Transfer Manager uses an ever-increasing amount of memory based on the number of objects to sync #10880

Open

Description

@FluffySkyCat

Describe the bug

When performing an AWS S3 Sync operation with a very large number of files (millions) there appears to be an slow but unbounded increase in memory usage until the transfer completes when using the CRT transfer manager. This does not occur when using the classic client.

This appears to be from the _future_coordinators variable here:

self._future_coordinators.append(coordinator)

This variable is appended to, but never deleted from until the transfer is cancelled or the sync is fully done.

Regression Issue

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

Expected Behavior

AWS S3 Sync commands on very large number of objects should not use an ever-increasing amount of memory.

Current Behavior

AWS S3 Sync commands accumulate memory usage until the command is complete.

Reproduction Steps

Run an aws s3 sync command on a very large number of files (e.g., millions). Observe that memory usage will continue to increase until the command completes. For ease of reproduction, this works in an AWS emulator such as Ministack or LocalStack as well, you don't need to sync to an actual AWS bucket.

Possible Solution

Clean up entries from _future_coordinators as uploads complete

Additional Information/Context

No response

CLI version used

2.38.3

Environment details (OS name and version, etc.)

aws-cli/2.38.3 Python/3.15.0 Darwin/25.6.0 source/arm64

Activity

  1. added
    bugThis issue is a bug.
    needs-triageThis issue or PR still needs to be triaged.
    on Nov 11, 2026
  2. changed the title [-]AWS S3 CRT Transfer Manager has unbounded increasing memory usage until transfer is complete[/-] [+]AWS S3 CRT Transfer Manager uses an ever-increasing amount of memory based on the number of objects to sync[/+] on Nov 11, 2026
  3. added
    investigatingThis issue is being investigated and/or work is in progress to resolve the issue.
    p1This is a high priority issue
    and removed
    needs-triageThis issue or PR still needs to be triaged.
    investigatingThis issue is being investigated and/or work is in progress to resolve the issue.
    on Nov 12, 2026
  4. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    This issue is now closed. Comments on closed issues are hard for our team to see.
    If you need more assistance, please open a new issue that references this one.

  5. reopened this on Nov 12, 2026
  6. hssyoo commented on Nov 12, 2026

    @hssyoo
    Contributor

    @FluffySkyCat Thanks for the report. I was able to reproduce it and verify the root cause you suggested. We merged a fix via #10888 and will go out in today's release.

  7. added
    response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugThis issue is a bug.p1This is a high priority issuepotential-regressionMarking this issue as a potential regression to be checked by team memberresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.s3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions