Forum Stats

  • 3,854,239 Users
  • 2,264,344 Discussions
  • 7,905,618 Comments

Discussions

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

Luis Rodriguez Fernandez
Luis Rodriguez Fernandez Member Posts: 108 Blue Ribbon
edited Nov 20, 2019 9:04AM in Java Mission Control

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

Answers

  • Luis Rodriguez Fernandez
    Luis Rodriguez Fernandez Member Posts: 108 Blue Ribbon
    edited Nov 20, 2019 9:04AM

    Sorry, I forget some details about my environment:

    Server version: Apache Tomcat/9.0.20

    Server built:   May 3 2019 22:26:00 UTC

    Server number:  9.0.20.0

    OS Name:        Linux

    OS Version:     4.15.0-66-generic

    Architecture:   amd64

    JVM Version:    1.8.0_212-b25

    JVM Vendor:     Oracle Corporation

    CentOS Linux release 7.6.1810 (Core)