Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load the JFR file with java 1.8 #19

Open
JerryYangSH opened this issue Sep 27, 2018 · 2 comments
Open

Could not load the JFR file with java 1.8 #19

JerryYangSH opened this issue Sep 27, 2018 · 2 comments

Comments

@JerryYangSH
Copy link

I am still hitting JFR parse issue. I am sure this is not gzip jfr file.
sudo -u storageos /usr/lib64/jvm/java-1.8.0-oracle/bin/jcmd pidof blobsvc JFR.start settings=profile name=blob_test.jfr filename=/var/log/blob_test.jfr duration=60s

provo-tangelo:/usr/lib64/jvm/java-oracle/bin # create_flamegraph.sh -f /var/log/blob_test.jfr -i
Could not load the JFR file.
If the JFR file is compressed, try the decompress option
com.jrockit.mc.flightrecorder.internal.parser.binary.InvalidFlrFileException
Exception in thread "main" java.lang.RuntimeException: com.jrockit.mc.flightrecorder.internal.parser.binary.InvalidFlrFileException
at com.jrockit.mc.flightrecorder.FlightRecordingLoader.loadFile(FlightRecordingLoader.java:194)
at com.github.chrishantha.jfr.flamegraph.output.JFRToFlameGraphWriter.loadRecording(JFRToFlameGraphWriter.java:119)
at com.github.chrishantha.jfr.flamegraph.output.JFRToFlameGraphWriter.process(JFRToFlameGraphWriter.java:107)
at com.github.chrishantha.jfr.flamegraph.output.Application.main(Application.java:46)
Caused by: com.jrockit.mc.flightrecorder.internal.parser.binary.InvalidFlrFileException
at com.jrockit.mc.flightrecorder.internal.parser.binary.StringParser.readStringByteCount(StringParser.java:34)
at com.jrockit.mc.flightrecorder.internal.parser.binary.StringParser.read(StringParser.java:20)
at com.jrockit.mc.flightrecorder.internal.parser.binary.EventParser.loadEvent(EventParser.java:36)
at com.jrockit.mc.flightrecorder.internal.parser.binary.EventParserManager.loadEvent(EventParserManager.java:90)
at com.jrockit.mc.flightrecorder.internal.parser.binary.ChunkLoader.run(ChunkLoader.java:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

@chrishantha
Copy link
Owner

What is your Java version? Please give me the output of following command.

sudo -u storageos /usr/lib64/jvm/java-1.8.0-oracle/bin/java -version

@JerryYangSH
Copy link
Author

Here is it.
provo-tangelo:/opt/storageos/logs # sudo -u storageos /usr/lib64/jvm/java-1.8.0-oracle/bin/java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

provo-tangelo:/opt/storageos/logs # ls -ltrh /var/log/blob_test.jfr
-rw-r--r-- 1 storageos storageos 2.2M Sep 27 09:51 /var/log/blob_test.jfr

provo-tangelo:/opt/storageos/logs # file /var/log/blob_test.jfr
/var/log/blob_test.jfr: data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants