開啓飛行模式,打印JFR日誌,使用jmc打開;ide
啓動時打開飛行模式 -XX:+UnlockCommercialFeaturesidea
-XX:+UnlockCommercialFeatures
打印飛行記錄 Jcmd <pid> JFR.start duration=120s filename=myrecording.jfr 執行完該命令,會顯示文件地址;日誌
Jcmd <pid> JFR.start duration=120s filename=myrecording.jfr
Started recording 1. The result will be written to: F:\ideaSpace\study\myrecording.jfr