Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8351594 JFR: Rate-limited sampling of Java events
  3. JDK-8362892

Release Note: Socket, File, and Exception Events for JFR Are Throttled by Default

XMLWordPrintable

    • jfr

      Previously, the events `jdk.SocketRead`, `jdk.SocketWrite`, `jdk.FileRead`, and `jdk.FileWrite` were recorded if the duration exceeded 20 ms in the default configuration (default.jfc). The threshold has been lowered to 1 ms. To prevent a high volume of events, a rate limit of 100 events per second is imposed on these events. To restore the previous behavior, you can set the throttle setting to "off" and the threshold to "20 ms". For example:

      `-XX:StartFlightRecording:jdk.SocketRead#threshold=20ms,jdk.SocketRead#throttle=off`

      The `jdk.JavaExceptionThrow` event was previously disabled by default, but is now enabled by default with a rate limit of 100 events per second. To disable this event, use:

      `-XX:StartFlightRecording:jdk.JavaExceptionThrow#enabled=false`

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: