Abacn opened a new pull request, #41029:
URL: https://github.com/apache/beam/pull/41029
In JDK 22+ (and backported to JDK 21.0.8+ via JDK-8319713), ParallelGC
removed
PSAdaptiveSizePolicy::should_full_GC, delaying Full GCs until Old Gen is
exhausted and increasing memory pressure on memory-constrained workers.
It is sometime preferable to use a different JVM GC policy, e.g. the default
UseG1GC
for high-memory-pressure workload.
While the Dataflow Java nonportable worker container supports overriding the
JVM garbage
collector via `--experiments=java_gc=<GC>`, the portable Java SDK harness
container (`sdks/java/container/boot.go`) hardcoded `-XX:+UseParallelGC`.
<!--
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
- [ ] Replace these instructions with a description of your change and why
you have made it.
- [ ] Mention the appropriate issue in your description (for example:
`addresses #123` or `fixes #456`).
- [ ] Update `CHANGES.md` with noteworthy changes.
See [CONTRIBUTING.md]() for more details.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]