Hi Svante:

>> There is a known issue with log4net when you have mulitple sites logging to 
>> the same file

I don't think I'm doing that (see my last post to the list).

>> Just guessing, but I might also guess that you'd risk seeing the same 
>> problem under heavy load of a single site.

I have not seen that (yet).  I can't help but wonder if 3 processes named 
w3wp.exe with different PIDs is a factor here.

>> Both of your missing files appear to happen due to problems accessing the 
>> main log file when it is about to be rolled over for the first time. This 
>> then propagates for each roll over, causing them to end up as #7 and #26 
>> missing in the snapshot you provided.

Agreed.

>> If your problem is caused by multiple sites, you may want to try 
>> http://log4netremotelogging.codeplex.com/ which I wrote a few years ago to 
>> handle this and other issues with consolidating logs from several 
>> sites/servers.

I may end up doing this eventually, but I'd rather give a try at fixing the 
rolling file appender.  This software is installed at customer sites, and they 
are very picky about anything other than text files on the local servers.

Thank you again.

Doug

From: Svante Seleborg [mailto:softw...@axantum.com]
Sent: Tuesday, January 14, 2014 11:59 PM
To: Log4NET User
Subject: Re: log4net rolling file appender losing log files during roll over

Hello,

There is a known issue with log4net when you have mulitple sites logging to the 
same file causing this exact situation (among other issues). Please ensure this 
is not the case in your configuration. Just guessing, but I might also guess 
that you'd risk seeing the same problem under heavy load of a single site. Both 
of your missing files appear to happen due to problems accessing the main log 
file when it is about to be rolled over for the first time. This then 
propagates for each roll over, causing them to end up as #7 and #26 missing in 
the snapshot you provided.

If your problem is caused by multiple sites, you may want to try 
http://log4netremotelogging.codeplex.com/ which I wrote a few years ago to 
handle this and other issues with consolidating logs from several sites/servers.

Svante

On Tue, Jan 14, 2014 at 11:36 PM, Douglas Neary 
<dne...@miteksystems.com<mailto:dne...@miteksystems.com>> wrote:
All:

Under heavy strain, I am seeing log4net lose log files during roll over.   I 
filed a bug yesterday (https://issues.apache.org/jira/browse/LOG4NET-416), and 
I wanted to offer my help (and hardware) to help track it down.  I attached the 
internal log4net log to the ticket.

The hardware we are using is pretty high end 
(http://www8.hp.com/us/en/products/proliant-servers/product-detail.html?oid=4231377#!tab=features).
    We are using this beast as a combined image processor and web server, 
running IIS 7.5 on Windows Server 2008 R2.

For every transaction processed, a line is written to log4net.   On average, we 
are probably doing around 7 transactions per second.  This works fine for a 
while, until it doesn't.   Then it starts losing log files during rollover.

Given all the value we have gotten out of log4net, my company is willing to 
donate some of my time and some time on that DL980 to test out the fixes...

Is there anyone who can give me a push in the right direction?

Thanks,
Doug

Reply via email to