Skip to content

Instantly share code, notes, and snippets.

@mhicauber
Created July 19, 2023 08:38
Show Gist options
  • Save mhicauber/f7a9fb80d495709f2b47133ac03a24af to your computer and use it in GitHub Desktop.
Save mhicauber/f7a9fb80d495709f2b47133ac03a24af to your computer and use it in GitHub Desktop.
Useful monitoring commands. Java/docker/wildfly
# Java flight recording snapshot :
docker exec <containerID> jcmd <java PID inside container> JFR.start name=monitor30m maxage=30m maxsize=250M
# Dump will be stored in container app root path (/opt/jboss/***.jfr in my case) after 30m
# If you want to stop it before maxage time :
docker exec <containerID> jcmd <java PID inside container> JFR.stop name=monitor30m filename=/tmp/debugrun1.jfr
# JFR file can be analyser with Oracle Java Mission Control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment