Add jfr-demo: JFR + Mission Control profiling of a live Spring Boot app
Custom OrderProcessed event, CPU/allocation/lock workloads, a diagnostic endpoint over the JVM's live FlightRecorder state, a JUnit test using the jdk.jfr.Recording API, and nine captured recordings (flagship, mid-flight snapshot, isolated vs concurrent threshold comparisons, and a real dump+stop duplication bug) with their docs/output/*.txt transcripts.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
$ jcmd 5287 JFR.start name=demo settings=profile maxsize=256m
|
||||
5287:
|
||||
Started recording 15.
|
||||
|
||||
Use jcmd 5287 JFR.dump name=demo filename=FILEPATH to copy recording data to file.
|
||||
|
||||
$ curl -s localhost:8080/api/jfr/recordings
|
||||
[{"id":15,"name":"demo","state":"RUNNING","startTime":"2026-10-01T04:30:41.255843977Z","maxSize":268435456,"maxAge":"null","destination":"null"}]
|
||||
|
||||
$ jcmd 5287 JFR.stop name=demo filename=/tmp/throwaway-demo.jfr
|
||||
5287:
|
||||
Stopped recording "demo", 251.6 kB written to:
|
||||
|
||||
/tmp/throwaway-demo.jfr
|
||||
Reference in New Issue
Block a user