Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Implemented
-
1.3.0
-
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
- links to