https://github.com/marschall/jfr-demo
a demonstration of using projects that generate JFR events
https://github.com/marschall/jfr-demo
Last synced: 15 days ago
JSON representation
a demonstration of using projects that generate JFR events
- Host: GitHub
- URL: https://github.com/marschall/jfr-demo
- Owner: marschall
- Archived: true
- Created: 2019-03-09T16:08:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T21:55:25.000Z (almost 2 years ago)
- Last Synced: 2025-05-07T23:02:53.217Z (16 days ago)
- Language: Java
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JFR Demo
A demonstration of using projects that generate JFR events.
## Running the Included Demos
set the Maven options
```
export MAVEN_OPTS="-XX:StartFlightRecording:filename=recording.jfr,settings=$(pwd)/src/main/resources/Zulu_Profiling.jfc -XX:FlightRecorderOptions:stackdepth=256"
```run the Maven demo
```
mvn -pl jfr-demo -am clean test
```run the Web demo http://127.0.0.1:8080/
```
mvn -pl jfr-demo-web -am jetty:run
```dumping
```
jcmd 99776 JFR.dump name=1
```## Running JFR in General
create a recording
```
jcmd 19993 JFR.configure stackdepth=256
jcmd 19993 JFR.start name=\"Zulu Recording\" settings=${HOME}/git/jfr-demo/src/main/resources/Zulu_Profiling.jfc duration=2m filename=${HOME}/git/jfr-demo/src/main/resources/Zulu_Recording.jfr
jcmd 19993 JFR.stop name=\"Zulu Recording\" filename=${HOME}/git/jfr-demo/src/main/resources/Zulu_Recording2.jfr
```print perf counters
```
jcmd 19993 PerfCounter.print
```