Skip to content

Allow specifying transferDirectoryMaxConcurrency in S3TransferManager #6330

@AndreKurait

Description

@AndreKurait

Describe the feature

Currently there is a hardcoded value for DEFAULT_DIRECTORY_TRANSFER_MAX_CONCURRENCY in TransferConfigurationOption of 100 added in #5031. When using the S3TransferManager with limited java heap allocation, this can cause OutOfMemory errors due to number of concurrent file downloads.

Customers would like the ability to specify transferDirectoryMaxConcurrency during creation of the S3TransferManager.

Use Case

Currently on smaller heap sizes, we can get OutOfMemory Errors with downloadDirectory. See #6323

Proposed Solution

Add parameter to specify transferDirectoryMaxConcurrency during creation of the S3TransferManager. See https://github.com/aws/aws-sdk-java-v2/pull/6329/files

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

2.32.18

JDK version used

17

Operating System and version

AmazonLinux2023

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.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