4 Replies Latest reply on Jun 2, 2005 9:41 AM by Mark Thill

    jboss.out growing massive

    Mark Thill Newbie

      $JBOSS_HOME/server/default/log/jboss.out is growing extremely large and does not rollover to date specific log files, so it just becomes one very large file. Does anyone know how to make this file rollover to a new file each day?

      Thanks

        • 1. Re: jboss.out growing massive
          Darran Lofthouse Master

          Which version of Jboss are you using? Is it a default configuration or has someone changed the configuration.

          I have never seen a default configuration have a file called jboss.out. How have you configured / installed JBoss so that there is a file called jboss.out?

          • 2. Re: jboss.out growing massive
            Mark Thill Newbie

            Some detail might have helped on my end. I'm using JBoss 3.2.3 and it is installed on a Unix platform (sun solaris). I have a feeling that anything that is supposed to go to the console is going to this file since we are running this as a background service which has no console. That is only a guess though. When I run the same version of the code on my local sandbox (windows) where there is a console I get no jboss.out file at all. Any suggestions would be greatly appreciated.

            • 3. Re: jboss.out growing massive
              Darran Lofthouse Master

              If you have a look at the log4j.xml in the default\conf folder you should be able to find the console appender.

              The safest option would probably be to increase the Threshold all the up to error or fatal to reduce the information sent to the console.

              I did think you could try redirecting the output to /dev/null so that it is discarded but if you are not careful certain errors not handled by log4j might be lost and if you forget this redirection later is could cause you problems.

              • 4. Re: jboss.out growing massive
                Mark Thill Newbie

                Thanks for the information. I think I found out how to start rollover by date on that file. Just needed to know where to look. I added the following to the console appender:



                and

                <param name="DatePattern" value="'.'yyyy-MM-dd"/>

                Hopefully this will start rollover. If not, I'll set the threshold much higher, so that it doesn't log as much to that file.

                Thanks again