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

[4.0.9] Bad container documentation #8876

Open
hrstoyanov opened this issue Jun 12, 2024 · 1 comment
Open

[4.0.9] Bad container documentation #8876

hrstoyanov opened this issue Jun 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working docs

Comments

@hrstoyanov
Copy link
Contributor

hrstoyanov commented Jun 12, 2024

The Helidon Jib documentation specify some "good defaults intended for containers" jvm options for running Helidon 4 in container:

            <!-- good defaults intended for containers -->
            <jvmFlags>
                <jmxFlag>-server</jmxFlag>
                <jmxFlag>-Djava.awt.headless=true</jmxFlag>
                <jmxFlag>-XX:+UnlockExperimentalVMOptions</jmxFlag>
                <jmxFlag>-XX:+UseCGroupMemoryLimitForHeap</jmxFlag>
                <jmxFlag>-XX:InitialRAMFraction=2</jmxFlag>
                <jmxFlag>-XX:MinRAMFraction=2</jmxFlag>
                <jmxFlag>-XX:MaxRAMFraction=2</jmxFlag>
                <jmxFlag>-XX:+UseG1GC</jmxFlag>
            </jvmFlags>

However, when used, one gets these warnings:

OpenJDK 64-Bit Server VM warning: Option InitialRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Option MinRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
@romain-grecourt romain-grecourt added bug Something isn't working docs labels Jun 12, 2024
@barchetta
Copy link
Member

barchetta commented Aug 5, 2024

These should be replaced with *RAMPercentage
Background info: https://bugs.openjdk.org/browse/JDK-8186315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs
Projects
Status: High priority
Development

No branches or pull requests

3 participants