JDK-8146879 : Add option for handling existing log files in UL
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: svc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-01-12
  • Updated: 2018-12-06
  • Resolved: 2016-04-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b116Fixed
Related Reports
Relates :  
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