Bug 55270 - JBoss Stoped Updating server.log
Summary: JBoss Stoped Updating server.log
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 20:34 UTC by Tim Ke
Modified: 2013-07-15 20:35 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Ke 2013-07-15 20:34:17 UTC
Hi,

On our servers, we found Jboss stopped updating server.log after running a couple of days.

We are using DailyRollingFileAppender like below:

<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
      <param name="File" value="${jboss.server.log.dir}/server.log"/>
      <param name="Append" value="true"/>
      <param name="Threshold" value="INFO"/>
      <param name="MaxFileSize" value="5000KB"/>
      <param name="MaxBackupIndex" value="1"/>
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
</appender>

We notice that the java process opened a "deleted" file when the problem happened with a lsof command:

/home/jboss-4.3.0/server/main/log/server.log~ (deleted)

The .jar we are using is slf4j-log4j12-1.5.6.jar.

When the problem happened, application functionality worked fine. And after we make a "touch jboss-log4j.xml", JBoss started the update server.log again.

Thanks,
Tim Ke