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

jfr repository grows larger than maxsize if disabled events are triggered only

XMLWordPrintable

    • jfr
    • b34

        A temporary chunk file(.jfr.part file) in the jfr repository can keep growing indefinitely under some circumstances.

        Reproduces easily with the included testcase. Run with the following arguments:
        java -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,settings=./test.jfc,maxsize=10m,maxchunksize=1m,maxage=10s Test

        The files in the repository will keep growing past the max sizes:
        # du -h /tmp/2013_02_19_15_26_07_5591/*
        0 /tmp/2013_02_19_15_26_07_5591/2013_02_19_15_26_07_5591.jfr
        129M /tmp/2013_02_19_15_26_07_5591/2013_02_19_15_26_07_5591.jfr.part

              mgronlun Markus Grönlund
              aeriksso Andreas Eriksson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: