TUNE THE WHOLE STACK: JVM, CONTAINER, AUTOSCALING, NODES

JVM on Kubernetes
optimization

Akamas continuously analyzes your Java workloads on Kubernetes and automates JVM performance tuning across the stack. It tunes the JVM, container resources, autoscaling policies, and the underlying nodes together. The result is Java applications that run reliably, without OOMKills, at the lowest sustainable cost.

+150%

THROUGHPUT

−95%

RESPONSE TIME

−65%

RESOURCES USED

0

RESTARTS

THE CHALLENGE

Three pain points every Java team knows

JVM defaults were designed for large, static machines. Kubernetes isn’t that environment, and the cost shows up everywhere at once.

OOMKilled Pods and the memory beyond heap

JVM memory goes far beyond the heap. Metaspace, code cache, thread stacks, and native memory push real usage 30-100% beyond -Xmx. The container limit doesn't know that, so pods get OOMKilled again and again, and the usual fix is to give everyone more memory.

Slow Startup Under Tight Limits

JIT compilation, classpath scanning, and bean initialization demand heavy CPU at startup. With tight CPU limits, a Java service can take 30–60 seconds or more to become ready. By the time new pods can serve traffic, the spike autoscaling was meant to absorb has already hit.

Cloud Waste from Defensive Sizing

62% of organizations say Java accounts for over half of their cloud costs, and 71% report more than 20% of capacity sitting unused. Fear of OOMKills makes right-sizing feel impossible. So teams over-provision by default, and that headroom is paid for every month.

HOW AKAMAS WORKS

Akamas optimizes Java reliability and cost across the full stack.

The JVM belongs to developers. Pods and HPA policies belong to platform teams. Nodes belong to someone else again. When those layers are configured in isolation, the disconnect shows up as OOMKills, throttled startups, and over-provisioning that became the norm. Akamas continuously closes those gaps, with a single optimization view across the full stack.

DIAGNOSE

Find the misconfiguration before the OOMKill does

Akamas reads your live Java workloads across three layers, from the observability data you already collect:

  • The JVM runtime: heap, garbage collection, and memory pools beyond the heap.
  • The container: CPU and memory requests and limits, throttling, and OOMKill events.
  • Autoscaling and nodes: HPA replica ranges and scaling targets, and the node groups underneath.

It ranks issues by what they cost you, not just resource flags. Each finding is categorized as efficiency, reliability, or best practice, and ties an observable behavior to its risk or its cost.

Memory utilization running too close to the limit. A JVM running with its default configuration. An HPA stuck at max replicas at every peak. The pattern behind the next outage is rarely in the obvious place. Akamas surfaces it where the data already lives.

ANALYZE

See how every layer pushes on every other

Java performance on Kubernetes is a set of interlocked dials. Heap sizing shifts pod density, and how much room is left for native memory. GC behavior shifts CPU usage, and the signals the autoscaler scales on. CPU limits shift startup time, and how fast new replicas can take traffic. Akamas plots these interactions against your live workload, so you see:

  • Allocated capacity versus real utilization across CPU, memory, and heap, for every pod.
  • Where the gap between heap and container limit leaves too little, or too much, headroom.
  • Where GC activity skews the CPU signals your HPA relies on.

The decisions that were guesses become decisions backed by data.

Container tools see the pod. Runtime tools see the JVM. Akamas is the view that holds both in the same plot, against the workload that’s actually running.

OPTIMIZE

Recommendations that tune the JVM and Kubernetes together

 Akamas recommends specific changes across every layer of the stack: JVM heap and GC selection, container CPU and memory, HPA min and max replicas. Each recommendation shows expected impact on cost and reliability before anything is applied, including the risks it removes and any it could introduce. The data that drove each recommendation travels with it.

Engineering teams keep the call on what ships. Apply a change with a kubectl command, merge it as YAML into your GitOps flow, or let Akamas open a merge request in your repository. The repeatable workflow replaces one-off tuning efforts. As traffic shifts, releases change memory profiles, or new services land, the recommendations adjust. The optimization isn’t a project. It’s how the system stays optimized.

JVM distributions keep improving runtime internals. Configuration decisions across heap, CPU limits, and scaling policies still decide real-world efficiency. Akamas optimizes those decisions across the full stack.

Java workloads change faster than configurations do. Akamas keeps the configuration moving with them.

How Akamas Compares

One view across JVM and Kubernetes

Kubernetes rightsizing tools optimize the container. Manual JVM tuning optimizes the runtime. Akamas tunes both, plus autoscaling and nodes, against the same reliability and cost targets.

Kubernetes rightsizing tools Manual JVM tuning Akamas
What it sees Container CPU and memory usage JVM flags and GC logs JVM, container, autoscaling, and nodes together
Tunes JVM heap and GC No Yes, by hand Yes
Tunes container resources and HPA Yes No Yes
Tunes all layers jointly against one target No No Yes
Sees memory beyond heap before it causes an OOMKill No Partial Yes
Ties each change to cost and reliability impact Partial No Yes

POWERED BY CAPABILITY

Two capabilities, one optimization stack

Two ways to optimize the same Java workload. Continuous optimization recommends changes from the observability data you already collect on your live production workload. Pre-production optimization searches the full configuration space in a test environment for the deepest tuning before you ship. Both keep every change reviewable before it goes live.

Continuous Optimization

Recommends JVM, container, and HPA configurations on the observability data you already collect (Datadog, Dynatrace, Prometheus). Low friction, always on, grounded in production behavior.

Pre-production Optimization

Searches the full configuration space in a test environment, under load, with no constraint on which JVM or Kubernetes parameters it tunes. The deepest optimization, before you ship. Extends beyond Kubernetes to Java applications on virtual machines and traditional infrastructure.

BLOG

JVM Optimization Resources

FREQUENTLY ASKED QUESTIONS

JVM performance tuning on Kubernetes means tuning the JVM and the Kubernetes resources around it together, instead of one at a time: heap and garbage collection, container CPU and memory, autoscaling policies, and the nodes underneath. The payoff is Java services that stop getting OOMKilled and stop paying for headroom they never use.
Because the JVM uses much more memory than the heap. Metaspace, code cache, thread stacks, and native memory can push real usage 30–100% beyond -Xmx. If the container memory limit doesn’t account for that, Kubernetes kills the pod. Akamas sizes heap and limit together, so each leaves the right room for the other.
For a customer’s Java service running on Kubernetes in production, Akamas found a configuration that handled about twice the traffic, around 55,000 requests per minute on five replicas, with the same CPU as before. Memory use dropped from 13 GB to 4.5 GB, and average response time fell from 1.2 to 0.7 seconds. That’s roughly half the CPU, and a sixth of the memory, for every request served. The savings came from tuning the JVM and the container together, not from cutting resources blindly.
Rightsizing tools and VPA size the container from its usage, without knowing what the JVM inside is doing. Shrinking memory without changing the heap is a common cause of OOMKills. Akamas reads the JVM, the container, autoscaling, and nodes together, and recommends changes across all of them.
It depends on the approach, and either way Akamas doesn’t change production on its own. Continuous optimization recommends changes and shows their expected impact; your team reviews and decides what ships, with kubectl, YAML, or a merge request. Pre-production optimization automatically finds the best configuration in a test environment, and you then choose whether to promote it to production. The decision to change production is always yours.
No. Continuous optimization runs on the Kubernetes observability data you already collect (Datadog, Dynatrace, Prometheus). Pre-production optimization searches the full configuration space in a test environment and reaches beyond Kubernetes to Java applications on virtual machines and traditional infrastructure.

Akamas named a Leader in the GigaOm Radar for Cloud Resource Optimization v5, 2026
Akamas named an Outperformer in the GigaOm Radar for Cloud Resource Optimization v5, 2026

See for Yourself

Experience the benefits of Akamas autonomous optimization.
No overselling, no strings attached, no commitments.