Skip to content

Make sampling interval for Profiler and Memory Profiler configurable again #96

@sandybrownlee

Description

@sandybrownlee

-hi or -hprofinterval in the profilers previously allowed the user to set an interval != 10ms. Since the change to JFR, the interval is now fixed at 10ms. The JFR argument ‘settings=profile’ changes from the default sample rate settings to a specific 10ms sample rate setting.

The oracle documentation mentions that there was some way to customise every JFR setting through a config file. They provide two documents with JDK the ‘default’ settings and the ‘profiling’ settings but it is possible to define your own; that would allow for changes to the sample rate, and also sampling more types of methods and more thread types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions