[BUG] Higher memory consumption when running with JDK 21 #12694
Labels
bug
Something isn't working
Indexing:Performance
Indexing
Indexing, Bulk Indexing and anything related to indexing
Other
Performance
This is for any performance related enhancements or bugs
Describe the bug
We've noticed that some of our integration tests started failing with circuit breaker issues after updating the test container to 2.12.0.
The test in question tries to optimize the size of large bulk indexing requests, but the failure isn't related to the functionality but to overall heap behavior.
Essentially, we are seeing the same issue as described in #12454
Additional testing to isolate the issue leads us to believe that the behavior change is due to the switch to JDK 21.
Please see https://github.com/kroepke/opensearch-jdk21-memory for a smaller test case. It uses bulk indexing mainly to achieve memory pressure.
Flight recorder data yielded nothing obvious except a higher number of class version errors related to Painless components. It's unclear whether this is related or a red herring.
Related component
Other
To Reproduce
Please see https://github.com/kroepke/opensearch-jdk21-memory for a reproduction scenario.
Expected behavior
Switching the default JDK should not massively impact performance.
Additional Details
No response
The text was updated successfully, but these errors were encountered: