Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6280

Allow logging with Java flags

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 1.3.0
    • 1.3.0
    • Deployment / Scripts
    • None

    Description

      Allow configuring Flink's Java options with the logging prefix and log rotation. For example, this allows the following configurations to write .jfr and .jit files alongside the existing .log and .out files.

      Configuration for Java Flight Recorder
      env.java.opts: "-XX:+UnlockCommercialFeatures -XX:+UnlockDiagnosticVMOptions -XX:+FlightRecorder -XX:+DebugNonSafepoints -XX:FlightRecorderOptions=defaultrecording=true,dumponexit=true,dumponexitpath=${LOG_PREFIX}.jfr"
      
      Configuration for JitWatch
      env.java.opts: "-XX:+UnlockDiagnosticVMOptions -XX:+TraceClassLoading -XX:+LogCompilation -XX:LogFile=${LOG_PREFIX}.jit -XX:+PrintAssembly"
      

      Attachments

        Issue Links

          Activity

            People

              greghogan Greg Hogan
              greghogan Greg Hogan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: