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

RFE: Handling large log files produced by long running Java Applications

XMLWordPrintable

    • generic
    • generic, solaris

        This RFE addresses the a problem faced by long running (one or more months) Java applications generating large log files that exhaust available disk storage.

        This RFE introduces a new flag -XX:logfilesize=n and its usage is described as follows:


         -Xloggc:somefile -XX:logfilesize=n

          If the value of n is 0 or is not set then current behavior.

          else

          if n is positive, close somefile when its size reaches n and direct
          GC log to somefile.1 until its size reaches n, close somefile.1 and
          dirct GC log to somefile.2 etc.

          A OS specific background (provided by the user) can monitor closed log files
          and move them to back up storage.

          else

          if n is negative perform circular logging when the file size equals abs(n)

              minqi Yumin Qi
              aperumai Asok Perumainar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: