Saturday, February 04, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: Performance Issues - log4net with Visual Basic 2005
Prev Next
You are not authorized to post a reply.

Author Messages
Romil Garg

02/07/2006 11:53 PM  

Hi,
        I am using log4net with Visual Basic 2005 and was wondering if there
are any performance issues with multiple threads of a same process writing
to 1 file. I basically have a process which has a pool of 25 threads doing
some processing and all these threads write to the same file. Once in  a
while we see some methods taking a little bit longer time than usual. Could
it be because of file being blocked by other threads. Are there any
performance issues with using associated with this scenario.
We are using Console Appender, Rolling File Appender, Event Log & SMTP
Appenders for Warnings & Fatal Errors.

Does log4net uses threads of its own to write to the log file or is it
blocking the application thread to wait to write to the file.

I already searched the web but could not find anything concrete.



Thanks.

Matthew Brown

02/08/2006 12:06 AM  
Are you by any chance using the MinimalLock attribute?

But out of the last you gave, I would assume SMTP to be the most "blocking" of all..
Romil Garg

02/08/2006 12:16 AM  
No, we are not using minimal lock attribute & SMTP appender has not been rolled out to our test environment yet. So right now we just have Console, rolling file & event log appenders.
Will it go into SMTP even if minimum threshold is Warn or Fatal.
 
 
Thanks
Nicko Cadell

03/02/2006 8:29 PM  

log4net works synchronously and in general this will be the most
performant option. Appenders that talk over the network can introduce
high latencies and for these some form of asynchronous processing may be
more appropriate.

The costs associated with an appender are not incurred if the appender
is not configured to output the event.

Cheers,
Nicko

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > Performance Issues - log4net with Visual Basic 2005



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement