Skip to content

[Native Image] Improperly specified VM option MaxRAMPercentage #12240

@cushon

Description

@cushon

After upgrading from GraalVM 24 to 25, I'm seeing a failure for a native-image build. It is reporting an error like

Improperly specified VM option 'MaxRAMPercentage=248.3526865641276'

I am not setting MaxRAMPercentage anywhere. I think the value is a computed default.

The build is running in an environment where the machine has more physical ram than is available to the process, due to cgroup limits. I wondered if that could be affecting the logic that is sizing MaxRAMPercentage, but it's just a guess.

I don't have a good self-contained repro yet, I can work on creating one.

Were there any changes to how the default for MaxRAMPercentage is computed between 24 and 25 that could be a culprit here?

The native-image command line includes:

-H:+ReportExceptionStackTraces
-H:+StaticExecutableWithDynamicLibC
-H:Log=registerResource:3
-H:-CheckToolchain
--no-fallback
--report-unsupported-elements-at-runtime
-march=x86-64-v2
-R:MinHeapSize=3072m
-R:MaxHeapSize=3072m
--parallelism=4
-H:+UnlockExperimentalVMOptions
-H:-DeleteLocalSymbols
-H:+PreserveFramePointer
-H:-IncludeMethodData

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions