Skip to content

Instantly share code, notes, and snippets.

@diyfr
Last active September 26, 2019 06:31
Show Gist options
  • Save diyfr/6790322ba3fac29dcb372c309d63ff33 to your computer and use it in GitHub Desktop.
Save diyfr/6790322ba3fac29dcb372c309d63ff33 to your computer and use it in GitHub Desktop.
Dump JVM Docker

Lister les process java du container, Souvent le 1

docker exec -ti container-name jps

On créé le dump remplacer 1 par le pid récupéré à l'étape précédente

docker exec -ti container-name jmap -dump:live,format=b,file=/tmp/dump.bin 1

On extrait le dump du container

docker cp container-name:/tmp/dump.bin ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment