简体   繁体   中英

Java Flight Recorder throws FileNotFoundException

Java Flight Recorder throws IO error:

Could not download recording for My Recording. java.io.FileNotFoundException: No chunks

Screenshot: http://s016.radikal.ru/i334/1609/86/02219bfb4c69.png

I use these JVM flags:

java -jar ^
-server ^
-XX:+UnlockCommercialFeatures ^
-XX:+FlightRecorder ^
-XX:StartFlightRecording=delay=5s,duration=40s,name=myrecording,filename=C:\JFR\1.jfr ^
 tool.jar

Have you tried without delay=5s?

You may get an error message on standard out if you start the recording directly. You can also try to start with:

-XX:FlightRecorderOptions=loglevel=trace

to get more information when it starts the recording.

Your user name, and therefore your temporary directory, contains characters that are not in the 7-bit ASCII set, which seems to confuse Flight Recorder. I've had the same issue with Swedish characters in user names on Windows.

In my case problem was solved when I set the TMP environment variable to a path with only plain characters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM