java-performance

Configure JVM heap sizing and garbage collectors for containerized Java applications.

3|2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill java-performance-wesleyegberto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-performance
Source: https://github.com/wesleyegberto/software-engineering-skills/tree/main/plugins/java/skills/java-performance
Command: npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill java-performance-wesleyegberto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers optimize JVM performance for containerized Java applications, guiding heap sizing, GC selection, Kubernetes resource tuning, and observability strategies.

Core Features & Use Cases

  • Heap sizing and ergonomics guidance for containers and cloud deployments
  • GC strategy recommendations (G1GC, ZGC, ParallelGC) based on workload
  • Kubernetes-aware JVM configuration and Prometheus metrics interpretation
  • Diagnostic practices for memory and latency issues in Spring Boot and microservices
  • Real-world use case: tuning a Java service to reduce GC pauses in a Kubernetes cluster

Quick Start

Configure the JVM with appropriate heap settings and a suitable GC, then enable and observe relevant Prometheus metrics to validate improvements.

Frequently Asked Questions about java-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I size the JVM heap for a Java application running in Kubernetes?

You can optimize JVM performance tuning by selecting the right garbage collector and sizing the heap to match K8s resource limits. This Skill provides heap sizing and ergonomics guidance to prevent OOMs and ensure stable performance in cloud deployments.

What is the best garbage collector for reducing latency in Spring Boot microservices?

The best garbage collector depends on your workload, but this Skill recommends GC strategies like G1GC, ZGC, or ParallelGC. It guides you through selecting the right GC to minimize pause times and optimize JVM performance for your specific microservices architecture.

How do I interpret Prometheus metrics to diagnose JVM memory and latency issues?

Interpreting Prometheus metrics for JVM diagnosis involves observing garbage collection rates and heap usage patterns. This Skill helps you enable and read relevant metrics to identify memory leaks and validate latency improvements in Spring Boot applications.

Why does my containerized Java service still get OOMs with Kubernetes memory limits set?

Containerized Java services experience OOMs when the JVM heap size exceeds Kubernetes pod memory limits. This Skill provides container memory awareness guidance to configure JVM ergonomics correctly and prevent OutOfMemoryErrors.

Does this approach work for tuning JVM performance in any Kubernetes environment?

This approach works for tuning JVM performance in any Kubernetes environment. The Skill provides Kubernetes-aware JVM configuration strategies that apply universally to containerized Java applications requiring heap sizing and GC optimization.