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

Improvements to the GC log file rotation

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b51
    • CPU:
      sparc
    • OS:
      solaris

      Backports

        Description

        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...

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  minqi Yumin Qi
                  Reporter:
                  poonam Poonam Bajaj Parhar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: