logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lott, Neil" <neil.l...@twcable.com>
Subject Possible RollingFileAppender issue
Date Tue, 28 Nov 2006 00:32:25 GMT
Hello,

 

Here's my version info:

 

uname -a

Linux silver3 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686
i686 i386 GNU/Linux

 

java -version

java version "1.5.0_08"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode)

 

log4j-1.2.8.jar          

logkit-1.2.jar

 

Here's the appender I'm using

 

<!-- ROLLING FILE APPENDER -->

                        <appender name="OUR_LOG"
class="org.apache.log4j.RollingFileAppender">

                        <param name="file"
value="/usr/local/neil/logs/server.log" />

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

                         <!-- <param name="MaxFileSize" value="5000KB"/>
-->

                        <param name="MaxFileSize" value="3000KB"/>

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

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

                        <param name="ConversionPattern"
value="%d{ISO8601} %5p [%t] (%C{1}.%M:%L) - %m%n"/>

                         </layout>

             </appender>

 

 

Here's what's happening:

 

            -rw-rw----    2 neil    2478223 Nov 27 17:18 server.log

-rw-rw----    1 neil    3072025 Nov 27 12:54 server.log.1

-rw-rw----    1 neil    3072657 Nov 27 06:20 server.log.2

-rw-rw----    1 neil    3072043 Nov 27 01:27 server.log.3

-rw-rw----    2 neil    2478223 Nov 27 17:18 server.silver3.2006112716

 

Here's my issue:

 

Why is there a file "server.silver3.2006112716" being created?  It's a
hard-linked file to server.log.  If I delete "server.silver3.2006112716"
then it will come back before server.log rolls.

 

If I do an lsof:

 

lsof server.log

COMMAND  PID   USER   FD   TYPE DEVICE    SIZE    NODE NAME

java    7758 neil    9w   REG   58,3 2482003 1419884 server.log

 

This is the only process that's writing to this file as far as I can
tell.

 

Any suggetions would be appreciated.

 

Thanks,

 

Neil

 

 



<HTML><BODY><P><hr size=1></P><br>
<P><STRONG><br>
This E-mail and any of its attachments may contain Time Warner<br>
Cable proprietary information, which is privileged, confidential,<br>
or subject to copyright belonging to Time Warner Cable. This E-mail<br>
is intended solely for the use of the individual or entity to which<br>
it is addressed. If you are not the intended recipient of this<br>
E-mail, you are hereby notified that any dissemination,<br>
distribution, copying, or action taken in relation to the contents<br>
of and attachments to this E-mail is strictly prohibited and may be<br>
unlawful. If you have received this E-mail in error, please notify<br>
the sender immediately and permanently delete the original and any<br>
copy of this E-mail and any printout.<br>
</STRONG></P></BODY></HTML>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message