Geronimo
  1. Geronimo
  2. GERONIMO-6073

Rotation and appending of console output when Geronimo is run a windows service

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.7, 2.2.1
    • Fix Version/s: None
    • Component/s: commands
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Windows

      Description

      GERONIMO-4394 provided for running Geronimo as windows service. The console output STDOUT is directed to geronimosrv.out and STDERR is directed to geronimosrv.err. If the server is running for long, these files can grow big requiring the server to be stopped. Also, each time the server is started as service, the files from the previous run are overwritten since the output does not get appended to existing file. So, if a user is interested in the console output from the previous runs, it is lost. So, console output rotation and appending to already existing files should be a good improvement for the "Run Geronimo as a Windows service" feature.

        Activity

        Hide
        viola.lu added a comment -

        comments from commons-daemon
        Mladen Turk added a comment - 01/Aug/11 20:24
        Think this will not be possible since we redirect the stdout/stderr before loading JVM.
        After it is loaded JVM uses those descriptors to write to the console.
        The user application if desired should call System.setOut and System.setErr
        and manage the log rotation on its own.

        Think I'll mark this as WONTFIX unless someone figures out how to do it
        from the procrun.

        Show
        viola.lu added a comment - comments from commons-daemon Mladen Turk added a comment - 01/Aug/11 20:24 Think this will not be possible since we redirect the stdout/stderr before loading JVM. After it is loaded JVM uses those descriptors to write to the console. The user application if desired should call System.setOut and System.setErr and manage the log rotation on its own. Think I'll mark this as WONTFIX unless someone figures out how to do it from the procrun.
        viola.lu made changes -
        Attachment append_setting.jpg [ 12486756 ]
        Hide
        viola.lu added a comment -

        Append setting screeshot

        Show
        viola.lu added a comment - Append setting screeshot
        Hide
        viola.lu added a comment -

        Appending log file can be set via UI redirect standard out put and standard error as attached picture.
        Log rotation has no option now, already opend a jira from Apache common daemon https://issues.apache.org/jira/browse/DAEMON-213
        Discussion thread: http://apache-commons.680414.n4.nabble.com/How-to-set-procun-log-rotation-on-Windows-td3671455.html

        Show
        viola.lu added a comment - Appending log file can be set via UI redirect standard out put and standard error as attached picture. Log rotation has no option now, already opend a jira from Apache common daemon https://issues.apache.org/jira/browse/DAEMON-213 Discussion thread: http://apache-commons.680414.n4.nabble.com/How-to-set-procun-log-rotation-on-Windows-td3671455.html
        viola.lu made changes -
        Field Original Value New Value
        Assignee viola.lu [ viola.lu ]
        Vamsavardhana Reddy created issue -

          People

          • Assignee:
            viola.lu
            Reporter:
            Vamsavardhana Reddy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development