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

Add option for handling existing log files in UL

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • Resolved In Build:
      b116

      Description

      Log files are opened in append mode to allow external rotation tools. When UL is configured to log to a file that already exists it doesn't truncate that file before writing to it, although this is how the previous -Xloggc system worked.

      After mailing list discussions [0] it was brought up that truncation wasn't the preferred way to handle existing log files. Instead an option for file outputs in UL should be added so that users may configure how existing files should be handled.

      [0]: http://mail.openjdk.java.net/pipermail/serviceability-dev/2016-January/018649.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mlarsson Marcus Larsson (Inactive)
                Reporter:
                mlarsson Marcus Larsson (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: