Why & When
Exposing the JDK Flight Recorder as a Spring Boot Actuator Endpoint
...Depending on your deployment scenario shell or JMX access might not be available for the application server. Here comes this handy starter into play! This starter adds a new Spring Boot Actuator endpoint for JDK Flight Recorder remote control. This RESTful endpoint allows starting and stopping Flight Recording and downloading the .jfr files for further analysis. By default, this starter doesn't include spring webmvc or spring web flux dependencies. You will have to include them according to the stack you wish. Every recording session gets its own unique Flight Recording ID. The endpoint returns this ID as plain text, in this case ID 1. ...