The memory calculator provides a mechanism to fine-tune the Java Virtual Machine (JVM) memory for an application. Its goal is to ensure that applications perform well while not exceeding a container's memory limit.
Below you can find which memory calculators are used in the relevant Java buildpacks.
This buildpack supports two memory calculator versions:
-
Memory Calculator V2 – activated by default.
-
Memory Calculator V1 (SAP JVM Memory Calculator) – this is an optional memory calculator. You can activate it by adding the following environment variable:
--- applications: - name: <app-name> ... env: MEMORY_CALCULATOR_V1: true ...
This buildpack supports only Memory Calculator V2, which is the same as the one provided by the community Java Buildpack. See: (GitHub) Java Buildpack Memory Calculator
Memory Calculator V1 is only available for SAP Java Buildpack 1.
If you try to activate it for SAP Java Buildpack 2, an error will be thrown.
This buildpack uses its default and only memory calculator: (GitHub) Java Buildpack Memory Calculator
Related Information