You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We upload several big 12GB files to S3, and the JVM will OOM because of these:
S3TransferManager transferManager = S3TransferManager.builder().s3Client(S3AsyncClient
.crtBuilder().targetThroughputInGbps(20.0).minimumPartSizeInBytes(8 * MB).build())
.build();
// then upload
UploadDirectoryRequest uploadDirectoryRequest = UploadDirectoryRequest.builder()
.bucket(outputBucket).s3Prefix(outputFile)
.source(Paths.get(inputFile)).build();
DirectoryUpload upload = transferManager.uploadDirectory(uploadDirectoryRequest);
CompletedDirectoryUpload completedDirectoryUpload = upload.completionFuture().join();
### Expected Behavior
Not OOM on a 6gb container for uploading a 12GB file.
### Current Behavior
OOM
### Reproduction Steps
JVM 21 jre. Use 6gb container, JVM setting about the same, generate from large file then upload.
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### AWS Java SDK version used
2.25.15
### JDK version used
openjdk version "21" 2023-09-19 OpenJDK Runtime Environment (build 21+35-2513) OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
### Operating System and version
Amazon Linux amd64
The text was updated successfully, but these errors were encountered:
Yeah, I'll try. It's almost doesn't happen in my local computer, btw. I think this is because my local network is slow & so the s3 crt client is never fast enough to accumulate enough heap to run into OOM error. However, when I run in EC2 in a VPC where there's fast network with S3, the issue immediately happens.
So maybe that will help you pinpoint the issue a bit more while I'm trying to gather a stacktrace & heapdump in prod.
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.
Describe the bug
We upload several big 12GB files to S3, and the JVM will OOM because of these:
The text was updated successfully, but these errors were encountered: