1. 解锁JFR
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder
2. 查看APP的PID
jcmd
3. 启动JFR
jcmd 12868 JFR.start name=201902211523 settings=e:my.jfc duration=24h compress=true
4. 保存并关闭JFR
jcmd 12868 JFR.stop name=201902211523 filename=e:201902211523.jfr