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.
- 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
kubectlconfiguration (no cluster agents required)
- Python 3.7+
kubectlinstalled locally- Access to a Kubernetes cluster via kubeconfig
- Java applications running in Kubernetes pods
- JVM tools (
jstack,jmap) available inside the target container
python3 /Users/${YOU}/Documents/tools/dumpv2/app.py >/dev/null 2>&1 & sleep 1 && open http://localhost:5001;fg
From the UI you can:
- Select a Kubernetes namespace
- Select a pod (and container, if applicable)
- Trigger a thread dump
- Trigger a heap dump
- Download the generated dump files