![]() Previous |
![]() Next |
Flight recording templates define the set of events that are recorded and event details (for some events, you can enable the stack trace to be attached to the event, , specify the duration threshold and a request period). To open the Flight Recording Template Manager:
Right-click a JVM in the JVM Browser and select Start Flight Recording.
Click Template Manager in the Start Flight Recording Wizard.
JFR includes two preconfigured server-side recording templates:
Continuous: A preconfigured template for continuous use in production environments with less than one percent overhead. This template is used for the default recording (see Dumping the Default Recording).
Profiling: A preconfigured template for profiling with around two percent overhead.
You cannot modify the preconfigured templates, but you can duplicate them and modify the duplicates to suit your requirements. To duplicate a template, select it in the list and click Duplicate. This will create a duplicate template with the same name and a number in parantheses appended to it.
To modify a template:
Select it in the list and click Edit.
Edit the name and description for the template.
Modify the event options.
Click Advanced to modify the event details. Click OK to apply the changes.
Click OK to apply the changes.
To create a new template, click New.
To remove a template, select it and click Remove.
You can export and import templates to share them among JMC clients. To save a template file in the JFC format, select the tempate and click Export File. To import an existing template file, click Import File.