Questions tagged [jfr]

JRockit/Java/JDK Flight Recorder (JFR), a performance monitoring and profiling tool

176 questions
3
votes
1 answer

How are @TransitionFrom and @TransitionTo supposed to be used

The Java Flight Recorder API contains two annotations TransitionFrom and TransitionTo but the documentation is very light on how they should be used. How are they supposed to be used? I assume they go on fields of events. Should they be boolean or…
Philippe Marschall
  • 4,452
  • 1
  • 34
  • 52
3
votes
1 answer

How to open the jfr partial file

When I use the configuration like below in my application, it always gets some xxx.jfr.part file. How can I open the XXX.jfr.part file in Java Flight Recorder tool? How can I change the configuration to create a less .part file? The configuration in…
haibin
  • 31
  • 3
3
votes
3 answers

AttachNotSupportedException when trying to start a JFR recording

I'm receiving AttachNotSupportedException when trying to start a JFR recording. It was working normally, until now. jcmd 3658 JFR.start maxsize=100M filename=jfr_1.jfr dumponexit=true…
hbelmiro
  • 987
  • 11
  • 31
3
votes
2 answers

Java Flight Recorder options not working and file is stored only in the end of the duration setting

I have a Java process and I start it (as suggested here : parameters for FR) with the options : -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=2m,filename=myflightrecord.jfr…
pokeRex110
  • 833
  • 2
  • 14
  • 26
3
votes
1 answer

java flight recorder concatenation error

i'm using java 7's flight recorder to dump execution of Hadoop tasks. to do this, i use this configuration option: mapred.child.java.opts -XX:+UnlockCommercialFeatures -XX:+FlightRecorder…
bradley
  • 31
  • 3
2
votes
2 answers

Java Flight Recorder - Logging parameters on JDK17

My jfr log does not contain any information about Memory / TLAB Allocation section , if analyze it by MissionControl JVM parameters (JDK17): -XX:+UnlockDiagnosticVMOptions -X::+DebugNonSafepoints -XX:UnlockCommercialFeatures -XX:+FlightRecorder…
27P
  • 1,183
  • 16
  • 22
2
votes
1 answer

I can't see exception details in JMC

After heavy load of my spring boot application, I opened JFR file with JMC. As you can see JFR says there are more than 8000 exception but it don't show what are they. How can I read that exception number? Note : From application layer there are no…
Altug
  • 1,723
  • 3
  • 19
  • 27
2
votes
0 answers

OpenJDK 17 / Java flight recorder license

I'm using openjdk 17 in production and I would like to use Java Flight Recorder tool but I cannot find precise information if I can use it for commercial purposes. I found that in Java 8 there is an information that this tool is commercial and…
jurek
  • 63
  • 7
2
votes
1 answer

Weblogic/OpenJDK 11 error - "Could not check file size to determine chunk rotation"

I am getting an error in Weblogic. I am running Weblogic 14.1.1 with OpenJDK 11.0.2. I am running on Red Hat Linux Enterprise version 8.4. This is a required platform stack, so I can't update any of these. The error I am receiving is "Could not…
Redbirdpat
  • 21
  • 3
2
votes
2 answers

JFR: OutOfMemoryError while reading .jfr file

I'm trying to analyze a large Flight Recorder file (1.5 GB) that I created previously. When executing the jfr print command, the tool runs into an OutOfMemoryError: $ jfr print --events "jdk.CPULoad" jfr print: unexpected internal error,…
Markus
  • 1,649
  • 1
  • 22
  • 41
2
votes
0 answers

How to profile a single Java (Spring) method run?

I have a Java Spring application that is running on my PC (I can attach debugger), I am looking for a way to profile a single method, preferably one that does have an UI to drilldown the child methods that consume the most time. I tried JDK mission…
qkhanhpro
  • 4,371
  • 2
  • 33
  • 45
2
votes
1 answer

how to make java JFR to include the timestamp in the file on dump StartFlightRecording filename with timestamp

I am starting the flight recording in this way : java -XX:StartFlightRecording=dumponexit=true,filename=/path/to/recorders/myrecording.jfr I would like to have the file named with the timestamp of the moment of the dump, lets say I dump next day…
Leo
  • 1,829
  • 4
  • 27
  • 51
2
votes
0 answers

Java Flight Recording does not report DeadLock in Java Mission Control

I was trying to simulate a deadlock situation that I was going to record with Java Flight Recorder and inspect with Java Mission Control. By some reason blocked threads are not marked as blocked under Threads section and Automated Analysis in Java…
2
votes
1 answer

Java Flight Recorder - find file descriptor leak

M Java application probably has a file descriptor leak, since I'm getting a Too many open files exception. I'm running my application with JFR, and when I inspect File I/O I barely see any I/O count. Is it possible to use JFR for finding code which…
Ori Popowski
  • 10,432
  • 15
  • 57
  • 79
2
votes
1 answer

Take more method count with Flight Recorder and JDK Mission Control

Background I am trying to inspect my Java batch application with Flight Recorder to improve the launching performance. Now it takes about 20 seconds to launch, and I am struggling to make it less than 10 seconds. The application is built with Spring…
SATO Yusuke
  • 1,600
  • 15
  • 39