[英]java flight recorder how to dump on exception, FlightRecordingDumpOnUnhandledException
java version 1.7.0_79
Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode) java version 1.7.0_79
Java(TM)SE运行时环境(版本1.7.0_79-b15)Java HotSpot(TM)64位服务器VM(版本24.79-b02,混合模式)
args i use 我用的args
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
-XX:+FlightRecordingDumpOnUnhandledException -XX:StartFlightRecording=duration=6m,filename=member.jfr"
-XX:FlightRecorderOptions=loglevel=debug,delay=2m,maxsize=2g"
error 错误
Unrecognized VM option 'FlightRecordingDumpOnUnhandledException'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
what is the correct option to use ? 使用的正确选项是什么? to dump the recording on exception 在异常时转储录音
-XX:+FlightRecordingDumpOnUnhandledException only works for JRockit. -XX:+ FlightRecordingDumpOnUnhandledException仅适用于JRockit。 No similar option exists for Hotspot (JDK7/8) Hotspot(JDK7 / 8)没有类似的选项
Use the template manager that is available in Mission Control. 使用Mission Control中提供的模板管理器。
Go to Windows -> Template Manager and import the template and check Heap Statistics and Allocation Profiling, export it. 转到Windows - >模板管理器并导入模板并检查堆统计和分配概要分析,然后将其导出。 Done! 完成!
(I copy-pasted this text from similar question , @Kire wrote it as well) (我从类似问题复制粘贴此文本,@ Kire也写了它)
Basically, you can just add exception-level=all
to settings. 基本上,您只需将exception-level=all
添加到设置中即可。 I have no idea why Oracle don't have documentation for this parameters. 我不知道为什么Oracle没有这个参数的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.