Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Flight Recorder in docker. Where are my dumps???

Luis Rodriguez FernandezNov 20 2019 — edited Nov 20 2019

Hello there,

I would like to get some flight recordings from a java application running in a docker container. My first attempt was to dump the recording on exit. However I am not sure if the running JVM (apache tomcat server) will be able to do it in a docker stop. My options looks like this:

-XX:FlightRecorderOptions=loglevel=debug,disk=true,defaultrecording=true,maxage=24h,repository=$CATALINA_BASE/logs,dumponexit=true,dumponexitpath=$CATALINA_BASE/logs/dumponexit.jfr,settings=profile

However neither I get my recording on exit nor my recordings are been created.

Any thoughts on this?

Thanks in advance,

Luis

Comments
Post Details
Added on Nov 20 2019
1 comment
1,071 views