4 Troubleshoot Performance Issues Using JFR

This chapter identifies performance issues with a Java application and debugs these issues using the Java Flight Recorder.

The Java Flight Recorder (JFR) is a commercial feature. You can use it for free on developer desktops or laptops, and for evaluation purposes in test, development, and production environments. However, to enable JFR on a production server, you must have a commercial license. Using JMC UI for other purposes on the JDK does not require a commercial license.

The Java Flight Recorder is a great tool to investigate performance issues. No other tool gives as much profiling data without skewing the results with its own performance overhead. This chapter gives examples of performance issues that you can identify and debug issues using the Java Flight Recorder.