Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8025356 | 8 | Yumin Qi | P3 | Closed | Fixed | b109 |
JDK-8040056 | 7u80 | Yumin Qi | P3 | Closed | Fixed | b01 |
JDK-8060867 | 7u79 | Yumin Qi | P3 | Resolved | Fixed | b01 |
JDK-8057299 | 7u76 | Yumin Qi | P3 | Closed | Fixed | b01 |
Alcatel suggested the following improvents in the GC log file rotation handling:
Improvement
1. Can you add a log message that includes a date/time stamp when a file is rotated to the new file being created. This helps in debugging/etc. GC problems and so can quickly determine which is the "active" GC log file.
Would not hurt to add log the the end of the previous file as well...
e.g For end...
2012.04.21 09:17:28 -0400 GC log file has reached the maximum size. Saved as GC_trace_042312-11:23:20.log.2
eg For start..
2012.04.21 09:17:28 -0500 GC log file created GC_trace_042312-11:23:20.log.2
2. Error log message improvement, if get incorrect parameters get the
following output:
...
To enable GC log rotation, use -Xloggc:<filename> -XX:+UseGCLogRotaion -XX:NumberOfGCLogFiles=<num_of_files> -XX:GCLogFileSize=<num_of_size>
where num_of_file > 0 and num_of_size > 0
GC log rotation is turned off
Notice:
a. "UseGCLogRotaion" is not spelled correctly
b. "-XX:GCLogFileSize" should provide units (K or M ...?)...Believe K
and M are supported?
Would be nice to get the above corrected...
Improvement
1. Can you add a log message that includes a date/time stamp when a file is rotated to the new file being created. This helps in debugging/etc. GC problems and so can quickly determine which is the "active" GC log file.
Would not hurt to add log the the end of the previous file as well...
e.g For end...
2012.04.21 09:17:28 -0400 GC log file has reached the maximum size. Saved as GC_trace_042312-11:23:20.log.2
eg For start..
2012.04.21 09:17:28 -0500 GC log file created GC_trace_042312-11:23:20.log.2
2. Error log message improvement, if get incorrect parameters get the
following output:
...
To enable GC log rotation, use -Xloggc:<filename> -XX:+UseGCLogRotaion -XX:NumberOfGCLogFiles=<num_of_files> -XX:GCLogFileSize=<num_of_size>
where num_of_file > 0 and num_of_size > 0
GC log rotation is turned off
Notice:
a. "UseGCLogRotaion" is not spelled correctly
b. "-XX:GCLogFileSize" should provide units (K or M ...?)...Believe K
and M are supported?
Would be nice to get the above corrected...
- backported by
-
JDK-8060867 Improvements to the GC log file rotation
- Resolved
-
JDK-8025356 Improvements to the GC log file rotation
- Closed
-
JDK-8040056 Improvements to the GC log file rotation
- Closed
-
JDK-8057299 Improvements to the GC log file rotation
- Closed
- duplicates
-
JDK-6950794 Make the GC log file name parameterized
- Closed
-
JDK-8008650 rotatingFileStream needs a cleanup
- Closed
- relates to
-
JDK-6836816 Allow the file specified in the -Xloggc:<file> option to be appended to
- Closed
(1 duplicates, 1 relates to)