aws / aws/aws-sdk-java-v2

S3 Transfer Manager with the AWS CRT-based S3 client is very slow compare to SDK 1.11.49

Open
#4,792 10 comments 0 reactions 1 assignee Claimed by @debora-ito View on GitHub
feature-request p2
Dominant language
Java
Stars
2.6k
Forks
1k
Avg merge
2d 9h
Merged PRs (30d)
51

Description

### Describe the bug

Download a file of 3.7 GB
Transfer manager SDK 1.11.49 -> Completes in 2 minutes 27 seconds
AWS CRT-based S3 client -> Completes in 4 minutes 46 seconds

### Expected Behavior

AWS CRT-based S3 client is faster than Transfer manager SDK 1.11.49

### Current Behavior

AWS CRT-based S3 client is faster than Transfer manager SDK 1.11.49

### Reproduction Steps

```
S3CrtAsyncClientBuilder builder = S3AsyncClient.crtBuilder().credentialsProvider(ProfileCredentialsProvider.create("XYZ")).region(Region.US_WEST_2);
try (S3TransferManager transferManager = S3TransferManager.builder().s3Client(builder.build()).build()) {
final DownloadFileRequest o = DownloadFileRequest.builder()
.getObjectRequest(req -> req.bucket(bucketName).key(objectName))
.destination(tempFile.getAbsoluteFile())
.addTransferListener(LoggingTransferListener.create())
.build();
FileDownload fileDownload = transferManager.downloadFile(o);
fileDownload.completionFuture().join();
}
```

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### AWS Java SDK version used

2.22.0

### JDK version used

Java 8

### Operating System and version

Ubuntu Linux

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.