Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI Java SDK 2.66.0 Stream Uploads Buffer Data Unnecessarily and May Cause OutOfMemoryError #601

Open
mricken opened this issue May 17, 2024 · 1 comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service

Comments

@mricken
Copy link
Member

mricken commented May 17, 2024

Upgrade to OCI Java SDK version 2.72.0 if you are currently using 2.66.0.

The OCI Java SDK version 2.66.0 contains a bug that causes it to buffer streams unnecessarily. For example, if you upload a stream of size 1 GiB, this will cause the OCI Java SDK to buffer an additional 1 GiB in the heap. This additional memory demand may cause an OutOfMemoryError.

The latest safe version is 2.65.1.

OCI Java SDK 3.x is not affected.

You are affected if:

  • you use version 2.66.0
  • and you use the Apache Connector (which is the default connector in the OCI Java SDK)
  • and you upload streams (e.g. using Object Storage's putObject or uploadPart operations)

Fix:

Other possible work-arounds (not recommended anymore):

@jodoglevy jodoglevy added the SDK Issue pertains to the SDK itself and not specific to any service label May 17, 2024
@Ataur11123
Copy link

Thank you for your cooperation as I am not qualified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service
Projects
None yet
Development

No branches or pull requests

3 participants