[prev in list] [next in list] [prev in thread] [next in thread]
List: log4net-dev
Subject: [jira] [Created] (LOG4NET-429) Pattern with Context property causes severe slowdown
From: Jonas_Versén_(JIRA) <jira () apache ! org>
Date: 2014-03-25 7:18:42
Message-ID: JIRA.12703405.1395731859187.137925.1395731922480 () arcas
[Download RAW message or body]
Jonas Vers=C3=A9n created LOG4NET-429:
------------------------------------
Summary: Pattern with Context property causes severe slowdown
Key: LOG4NET-429
URL: https://issues.apache.org/jira/browse/LOG4NET-429
Project: Log4net
Issue Type: Improvement
Components: Appenders
Affects Versions: 1.2.13
Reporter: Jonas Vers=C3=A9n
Priority: Minor
If you use a context property in your appenders pattern, there will be a si=
gnificant logging slowdown. In my experience anywhere from 3 to 5 times slo=
wer (this will depend on the appender).
I believe that as soon as you use a context property log4net will internall=
y access the windows user name even though it's not the property you want t=
o access. This theory comes from the fact that printing all properties in t=
he pattern (including the costly property username) compared to just printi=
ng one will slow down the logging with the same factor.
I've made a stackoverflow question with more details as well
http://stackoverflow.com/questions/22612286/using-log4net-context-propertie=
s-has-negative-impact-on-performance/
--
This message was sent by Atlassian JIRA
(v6.2#6252)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic