Duplicate :
|
|
Duplicate :
|
|
Relates :
|
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...
|