Skip to content

Instantly share code, notes, and snippets.

@stefan-cross
Last active October 13, 2021 13:32
Show Gist options
  • Save stefan-cross/90032007adab3ba4598ebed09995f99c to your computer and use it in GitHub Desktop.
Save stefan-cross/90032007adab3ba4598ebed09995f99c to your computer and use it in GitHub Desktop.
Java Heap Dump from a K8s Pod
Heap Dump from a K8s Pod
on pod:
jmap -dump:format=b,file=dump.hprof 1
from your machine:
kubectl exec -n application <pod-name> -- cat /dump.hprof > local_dump.hprof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment