Last active
October 13, 2021 13:32
-
-
Save stefan-cross/90032007adab3ba4598ebed09995f99c to your computer and use it in GitHub Desktop.
Java Heap Dump from a K8s Pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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