close

Filter

loading table of contents...

Deployment Manual / Version 2512.0

Table Of Contents
Heap Sizing

Correct heap sizing is as important as the GC algorithm choice. Two common mistakes lead to OOM incidents in opposite directions:

  • Heap too small — ParallelGC thrashes and triggers GC overhead limit exceeded under load.

  • Heap too large — the JVM heap plus off-heap memory (native buffers, Metaspace, thread stacks) exceeds the container memory limit, causing the container to be killed by the OS or Kubernetes.

As a guideline:

  • Allocate 70–80 % of the container memory limit as Java heap via JAVA_HEAP or -XX:MaxRAMPercentage. The remaining 20–30 % covers off-heap memory.

  • A heap of 4 GB is a tested baseline for a delivery CAE or Headless Server without heavy customisation. Scale up for higher traffic or more complex business logic.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.