Search

GC easy – Universal Java GC Log Analyser

Tag

Java containers

Best practices: Java memory arguments for Containers

This article discusses how to configure Java heap size when migrating applications to containers, focusing on three JVM arguments: -XX:MaxRAMFraction, -XX:MaxRAMPercentage, and -Xmx. It outlines their usage, limitations, and best practices, emphasizing the preference for the -Xmx option for precise control over heap size management in container environments.

Difference between InitialRAMPercentage, MinRAMPercentage, MaxRAMPercentage

This article explains the JVM arguments -XX:InitialRAMPercentage, -XX:MinRAMPercentage, and -XX:MaxRAMPercentage, introduced in Java 8 update 191. These options configure heap size based on physical or container memory. The article provides examples to clarify their functions, emphasizing that -Xms and -Xmx arguments take precedence over these percentages.

Up ↑