Skip to content

A lightweight web-based utility for generating Java thread dumps and heap dumps from Java applications running inside Kubernetes pods.

Notifications You must be signed in to change notification settings

se7enack/k8s-java-dump-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

k8s-java-dump-tool

A lightweight web-based utility for generating Java thread dumps and heap dumps from Java applications running inside Kubernetes pods.

This tool wraps common kubectl exec workflows behind a simple Python web service, making it easier to diagnose JVM issues such as deadlocks, high CPU usage, or memory leaks in Kubernetes environments.

Features

  • Generate Java thread dumps (jstack) from running pods
  • Generate Java heap dumps (jmap) from running pods
  • Simple web UI for selecting namespaces and pods
  • Ability to download dump files locally
  • Uses existing kubectl configuration (no cluster agents required)

Requirements

  • Python 3.7+
  • kubectl installed locally
  • Access to a Kubernetes cluster via kubeconfig
  • Java applications running in Kubernetes pods
  • JVM tools (jstack, jmap) available inside the target container

Running

python3 /Users/${YOU}/Documents/tools/dumpv2/app.py >/dev/null 2>&1 & sleep 1 && open http://localhost:5001;fg

Usage

Web Interface

From the UI you can:

  1. Select a Kubernetes namespace
  2. Select a pod (and container, if applicable)
  3. Trigger a thread dump
  4. Trigger a heap dump
  5. Download the generated dump files
Screenshot 2026-02-05 at 6 11 15 PM

About

A lightweight web-based utility for generating Java thread dumps and heap dumps from Java applications running inside Kubernetes pods.

Topics

Resources

Stars

Watchers

Forks