Skip to content

Calculate the MaxRAMPercentage dynamicallyΒ #528

@NicklasWallgren

Description

@NicklasWallgren

The default MaxRAMPercentage is set to 80.0, but it doesn't take MaxMetaspaceSize or ReservedCodeCacheSize into consideration.

Wouldn't it be more effective to dynamically calculate the MaxRAMPercentage, factoring in GC_MAX_METASPACE_SIZE and possibly ReservedCodeCacheSize?

I manually patched the java-default-options to support dynamic calculation of MaxRAMPercentage, and we haven't experienced any OOMKilled incidents since implementing the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions