java.lang.RuntimeException: 未启用飞行记录器。如果尝试启动新的飞行记录, 您将获得在 JVM 上启用飞行记录器的选项。
    at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:110)
    at com.jrockit.mc.browser.views.JVMBrowserView1.run(JVMBrowserView.java:100)
    at java.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.access301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: com.jrockit.mc.rjmx.services.flr.FlightRecorderException: 未启用飞行记录器。如果尝试启动新的飞行记录, 您将获得在 JVM 上启用飞行记录器的选项。
    at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refreshRecordings(FlightRecorderProvider.java:126)
    at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:99)
    ... 8 more

jvm启动增加参数:

-XX:+UnlockCommercialFeatures -XX:+FlightRecorder

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code