Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338389

[JFR] Long strings should be added to the string pool

XMLWordPrintable

    • jfr
    • b13

        When committing JFR events with string data longer than 128 characters, the string isn't added to the JFR string pool.

        In scenarios with many events containing large string values, this can lead to very large JFR recordings. This is mostly the case for custom events, containing f.i. SQL strings, or other data. In the case where the string data consist of mostly duplicate data, adding them to the string pool has been shown to reduce the recording size by a factor of 10.

        The current scheme for adding strings to the pool adheres to strings 16-128 characters long. In order for a string to be pooled, potential duplicates are cached and checked in a set of four. With this change, the current scheme still holds for lengths 16-128, but strings longer than 128 characters are always pooled.

              jnordstrom Joakim Nordström
              jnordstrom Joakim Nordström
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: