Questions tagged [jmc]

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis.

Java Flight Recorder is a profiling and event collection framework built into the Oracle JDK. It allows Java administrators and developers to gather detailed low level information about how the Java Virtual Machine (JVM) and the Java application are behaving. Java Mission Control is an advanced set of tools that enables efficient and detailed analysis of the extensive of data collected by Java Flight Recorder. The tool chain enables developers and administrators to collect and analyze data from Java applications running locally or deployed in production environments.

http://www.oracle.com/technetwork/java/javaseproducts/mission-control/index.html

157 questions
6
votes
1 answer

How to avoid truncated stack traces with Java Flight Recorder

I am using Oracle Java Flight Recorder to collect stack trace samples of a Java application. Theses stack traces allows me to eventually produce a CPU Flamegraph. My issue is that stack traces deeper than 64 frames are truncated by Java Flight…
Clément MATHIEU
  • 3,030
  • 23
  • 25
5
votes
2 answers

How to profile the number of exceptions generated, categorized by exception class or line of code

I'm using a number of open-source third-party libraries, and a flight recording shows that the code is generating tens of thousands of exceptions per second. How can I track down which type of exception is being thrown, and where in the source code…
Andrew Parks
  • 6,358
  • 2
  • 12
  • 27
5
votes
1 answer

How to import lib for JMX and Java mission Control?

Two questions I am having are: How to Import lib for jmx(i can't import it)? Can we access Java Mission Control using Code? (like I can see the visualisation of my problem but I want to fetch it into my IDE using code), is it possible?
Coder
  • 1,129
  • 10
  • 24
5
votes
2 answers

Java Mission Control – Flight Recorder throws parser exception

I'm trying to profile a Clojure app using JMC, but get the following exception when I try to start the flight recorder: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" JMC does let me start…
4
votes
1 answer

Why does JMC (JDK Mission Control) not show any virtual thread events?

I have a small SpringBoot app with 1 RestController with following method: @GetMapping("/current-thread") String currentThread() throws InterruptedException { var msg = new Msg(); Thread.startVirtualThread(() -> { …
Java User
  • 43
  • 4
4
votes
1 answer

Unable to view Flamegraph in JDK mission control v8.2

I am using JDK Mission Control v8.2 for profiling a JAVA program for learning purposes. When I go to Threads/Methods and try to find the flame graph of it, the tab is blank.ScreenShot. Also, the Graphview and Heapmap View are not showing any…
4
votes
2 answers

How to chase a JFR event over multiple threads

I'm struggling to model asynchronous servlet request processing with custom JFR events. The challenge I'm facing is that in asynchronous processing a request may be #dispatch()ed several times. This means the whole request processing chain may be…
Philippe Marschall
  • 4,452
  • 1
  • 34
  • 52
4
votes
2 answers

How to enable heap metrics for jfr via command line

I'm trying to run Java Flight Recorder using the jcmd binary located /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/jcmd (Mac OS X). Is there a command line option to enable heap metrics that corresponds to Heap Statistics…
Elvir Crncevic
  • 525
  • 3
  • 17
4
votes
1 answer

Java Flight Recorder File Format Not Supported

I am trying to profile the run of my Java code using Java Flight Recorder (JFR). To do this, I am using the terminal command: java -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=duration=500s,filename=myrecording.jfr -jar…
Chynna
  • 55
  • 8
4
votes
1 answer

How to get allocation pressure in Java Mission Control that ships with Java 10?

In the version of Java Mission Control that ships with Java 8, there is an "Allocation" tab that indicates the amount of pressure each allocation type places on the garbage collector. It looks like Oracle totally revamped the user interface because…
Gili
  • 86,244
  • 97
  • 390
  • 689
4
votes
0 answers

Yourkit vs Java Mission Control

I have a question about Yourkit and Java Mission Control.... I used Yourkit 7 years ago to profile a J2EE Application, now I am working for another project and I have to profile an application, this project does not have license for Yourkit. During…
posthumecaver
  • 1,584
  • 4
  • 16
  • 29
4
votes
1 answer

How to get stack trace of blocked statements in JMC Console?

I'm using Java Mission Control to profile my application. Amongst the useful metrics in the "Threads" tab is the number of times each thread was blocked. However, I can't seem to find a way to get which lines of code threads were blocked on. Is…
Sina Madani
  • 1,246
  • 3
  • 15
  • 27
4
votes
1 answer

Getting expensive java methods in terms of wall clock time by profiling using JMC

I am having a java application which makes a lot of external http calls. To identify the hot methods I have used System.currentTimeMillis() in all methods and I observed that the methods who are actually making the external HTTP calls are the hot…
tuk
  • 5,941
  • 14
  • 79
  • 162
4
votes
1 answer

Java mission control - save custom charts between sessions

Java mission control is absolutely great tool for monitoring applications. There is however one thing that gets on my nerves. I have many custom values that I chart on custom chart ("My Chart1") (request count per second, current busy threads etc.)…
user3364192
  • 3,783
  • 2
  • 21
  • 30
4
votes
2 answers

JMC Flight Recorder is not working

I Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) deployed on Linux box. I am able to run Java Mission control (JMC) however I am not able to run "Flight Recorder" from the JMC. I…
vs777
  • 564
  • 2
  • 11
  • 24
1
2
3
10 11