Skip to content

4.x Allow user to influence JFR RecordingStream used for virtual thread meters #9652

@tjquinno

Description

@tjquinno

Environment Details

  • Helidon Version: 4.x
  • Helidon SE or Helidon MP
  • JDK version:
  • OS:
  • Docker version (if applicable):

Problem Description

The new support for built-in meters related to virtual threads relies on Java Flight Recorder events. The RecordingStream Helidon uses for this currently uses the default JFR configuration settings.

This enhancement would allow users to use Helidon config or programmatically to choose which JFR config name or file to use for the RecordingStream.

Users would be able to choose the configuration by specifying:

  • the JFR config name (for predefined JFR configurations--these .jfc files are always stored in JAVA_ROOT/lib/jfc), or
  • the path to a custom .jfc file.

Helidon would interpret the setting as a name first and, if it could not find a JFR configuration by that name, then use it as as path to a .jfc file.

If Helidon could find neither, or the attempt to load a custom file fails, the server start-up would fail.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions