Java - JFR create a new configuration from existing one

less than 1 minute read

Creating a new custom(custom.jfc) JFR configuration from the existing profile.jfc

1
2
3
4
jfr configure \
  --input profile.jfc \
  +custom.jfr.MyEvent#enabled=true \
  --output custom.jfc

We can use custom.jfc on collecting JFR.

1
jcmd <pid> JFR.start settings=custom.jfc

Categories:

Updated: