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

Adjust CodeCache size to eliminate JVM warnings (and crashes) #1426

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

reta
Copy link
Collaborator

@reta reta commented Oct 22, 2021

Signed-off-by: Andriy Redko andriy.redko@aiven.io

Description

During the build, there are JVM warnings popping up from time to time:

[24.554s][warning][codecache] CodeCache is full. Compiler has been disabled.
OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
[24.554s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=49152Kb used=49151Kb max_used=49151Kb free=0K

Also, a very rare crashes are observed (first seen in #1408, related to https://bugs.openjdk.java.net/browse/JDK-8248519):

Caused by:
                    java.lang.VirtualMachineError: Out of space in CodeCache for method handle intrinsic
                        at java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method)
                        ... 28 more

The suggested fix is to increase CodeCache size a bit (from 48m to 64m).

Issues Resolved

N/A

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success ab72efe

@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed ab72efe

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success ab72efe

@tlfeng
Copy link
Collaborator

tlfeng commented Oct 22, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success ab72efe
Log 792

Reports 792

@reta
Copy link
Collaborator Author

reta commented Oct 22, 2021

✅ Gradle Check success ab72efe Log 792

Reports 792

The log is clean, no CodeCache warnings, to compare - https://ci.opensearch.org/logs/ci/workflow/OpenSearch_CI/PR_Checks/Gradle_Check/gradle_check_791.log, previous build for another PR:

> Task :modules:reindex:test
OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
[26.596s][warning][codecache] CodeCache is full. Compiler has been disabled.
OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
[26.596s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=49152Kb used=49151Kb max_used=49151Kb free=0Kb
 bounds [0x00007f313d4ae000, 0x00007f31404ae000, 0x00007f31404ae000]
 total_blobs=20895 nmethods=19911 adapters=900
 compilation: disabled (not enough contiguous free space left)
              stopped_count=1, restarted_count=0
 full_count=0

@dblock dblock merged commit 9f0457a into opensearch-project:main Oct 22, 2021
reta added a commit to reta/OpenSearch that referenced this pull request Oct 25, 2021
dblock pushed a commit that referenced this pull request Oct 26, 2021
…#1432)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
nknize pushed a commit that referenced this pull request Oct 26, 2021
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants