Blogs

How to Use StormForge Optimize Live’s Java Workload Optimization

How to Enable Java Workload Optimization

To start receiving Java-specific recommendations, you’ll need to configure the StormForge Agent to detect Java workloads and collect JVM metrics.

There are three key pieces of configuration required:

  • Kubernetes label selector that identifies your Java workloads
  • port where JVM metrics are exposed
  • An optional metrics path (default is /metrics, but this can be customized)

Here’s an example configuration block to include during agent install or upgrade:

jvmWorkloadConfigs:

- labelSelector: "example.com/jvm-runtime=true"

   metricsPort:

     matchNumber: 9090

   metricsPath: /jvm-metrics   # Default is "/metrics"

Please see the documentation for full instructions on configuring Java metrics collection in your environment.  

Viewing Java Heap Recommendations in the UI

Once the agent is successfully collecting Java metrics, Optimize Live will display a new Java tab within each workload’s detail screen.

There, you’ll see:

  • JVM-specific metrics, including heap usage and garbage collection
  • A recommended heap size for each Java container
  • Updated memory requests and limits aligned with that heap size

We recommend first reviewing the heap usage history and comparing it to the recommendation. You can apply the changes manually to confirm performance and cost impact.

Once you’re confident in the recommendations, you can move those workloads to auto-deploy mode, where Java rightsizing updates are applied regularly (daily by default).

Wrapping Up 

Java workload optimization brings targeted intelligence to one of the most memory-sensitive areas of Kubernetes. By understanding heap behavior and JVM memory patterns, StormForge enables safe, efficient tuning for Java-based applications—without guesswork or overprovisioning.

Ready to try it out? Start your free trial, or explore the feature in our interactive sandbox environment.

Sign up for our newsletter

Exclusive insights and strategies for cloud pros. Delivered straight to your inbox.


AUTHOR
CloudBolt
  Learn more

Related Blogs

 
thumbnail
VMware Aria alternative for VCF 9: Aria vs CMP – Part 2

Part 2 of 3. Read Part 1: why companies are making the move | Read Part 3: testing VMware alternatives…

 
thumbnail
Cast AI Alternative: ML Pod Rightsizing Without Replacing Karpenter

Cast AI has earned its place on Kubernetes cost optimization shortlists. Its node engine autonomously selects instance types, orchestrates Spot…

 
thumbnail
Kubernetes Resource Optimization Solutions: Top Tools Compared

At a high level, Kubernetes resource optimization tools address two related general challenges.  The first challenge is achieving workload efficiency.…