Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java JMC maxage/maxsize不';行不通_Java_Performance_Intellij Idea_Jmc_Jfr - Fatal编程技术网

Java JMC maxage/maxsize不';行不通

Java JMC maxage/maxsize不';行不通,java,performance,intellij-idea,jmc,jfr,Java,Performance,Intellij Idea,Jmc,Jfr,根据,我可以设置JFR录制的最大年龄和/或最大大小,但不起作用 我使用ant分享了Intellij IDEA录制和编译scala: 对于idea,我有以下设置: -XX:+FlightRecorder-XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=/home/ichaki/development/misc/stats/idea,maxage=1h,repository

根据,我可以设置JFR录制的最大年龄和/或最大大小,但不起作用

我使用ant分享了Intellij IDEA录制和编译scala:

对于idea,我有以下设置:

-XX:+FlightRecorder-XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=/home/ichaki/development/misc/stats/idea,maxage=1h,repository=/home/ichaki/development/misc/stats/idea,settings=profile

对于ant:

-XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=/home/ichaki/development/misc/stats/scala-ant,maxage=120s,maxsize=200k,repository=/home/ichaki/development/misc/stats/scala-ant,settings=profile

谢谢


注意:我想在带有SSD的环境中进行stat collection,SSD的大小非常有限。Flight Recorder将数据分块写入磁盘,默认情况下每个块大约12-15 Mb,因此无法将maxsize设置为低于该阈值。

您可以将chunksize设置得更小,我不确定建议多小。

不可能将其设置为低于1 MB。