TUNE THE WHOLE STACK: JVM, CONTAINER, AUTOSCALING, NODES
JVM on Kubernetes
optimization
+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


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