Created
July 19, 2023 08:38
-
-
Save mhicauber/f7a9fb80d495709f2b47133ac03a24af to your computer and use it in GitHub Desktop.
Useful monitoring commands. Java/docker/wildfly
This file contains 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
# 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