3 Replies Latest reply on Aug 1, 2011 11:45 AM by Peter Johnson

    JBoss logs are not available

    katrin Newbie

      Hello,

      we are using JBoss 4.2.3. We delete logs and restart the server every nigth and usualy they are created new. But sometimes there will be no new logfiles created in the server log direcorty. Can anyone help me please on this problem?

        • 1. Re: JBoss logs are not available
          Peter Johnson Master

          Either attach the jboss-log.xml file or post the FILE appender.

          • 2. Re: JBoss logs are not available
            katrin Newbie

               <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">

                      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>

                      <param name="File" value="${jboss.server.log.dir}/server.log"/>

                   <param name="Append" value="True"/>

             

                     <!-- Set the maximum log file size -->

                     <param name="MaxFileSize" value="50MB"/>

             

                     <!-- Keep two backups of the log -->

                     <param name="MaxBackupIndex" value="10"/>

             

                     <!-- The log layout -->

                  <layout class="org.apache.log4j.PatternLayout">

                     <!-- The default pattern: Date Priority [Category] Message\n -->

                     <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>

             

                     <!-- The full pattern: Date Priority [Category] (Thread:NDC) Message\n

                     <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>

                      -->

                  </layout>

               </appender>

            • 3. Re: JBoss logs are not available
              Peter Johnson Master

              Why would you delete the log files? With the rolling appender you have defined you will never have more than 11 log files, and you can always reduce that if that is too much space.

               

              The only setting I am a little concerned about is Append is True. Depending on the order in which the restart and the delete happens, it could be that the app server starts appending on the current log file before it gets deleted, at which point you would not see any log files until the deleted one reaches 50MB. Try setting Append to False and see if that changes the behavior.

               

              If that is not it, then there is something else going on in your environment and it might take some digging which is not possible via a forum. You will need to employ some OS-specific tools that let you see what file activity is going on.