# jfrSettings
By default, the yc-360 script uses the JDK default template to capture Java Flight Recorder (JFR) data. However, depending on your application's monitoring, performance troubleshooting, and security requirements, you may want to customize which JFR events are collected.
For example, you may want to collect more detailed performance profiling information, exclude unnecessary events, or restrict the collection of certain events to comply with your organization's security policies.
To address these requirements, you can utilize the jfrSettings argument to customize the JFR recording configuration. This argument accepts either a built-in JDK template (default or profile) or the path to a custom .jfc configuration file.
A .jfc (Java Flight Recorder Configuration) file is an XML-based configuration file that defines which JFR events are enabled and how they are recorded.
If this argument is not specified, the JDK default template is used. If the specified configuration file cannot be found or read, the yc-360 script logs an error and falls back to the default template.
Type: string
Default: "" (the JDK's default settings are used)
Example (YAML):
options:
jfrSettings: /opt/ycrash/custom.jfc
2
Example (CLI):
./yc -jfrSettings "/opt/ycrash/custom.jfc"
Notes:
The custom
.jfcconfiguration file must be readable by the target JVM process.Disabling essential events such as garbage collection, thread, or memory allocation events may result in incomplete information in the yCrash report.
If
excludeSensitiveDatais set totrue, thejdk.InitialEnvironmentVariableandjdk.InitialSystemPropertyevents remain disabled, regardless of the specified JFR configuration.