Details
-
Improvement
-
Status: Reopened
-
Minor
-
Resolution: Unresolved
-
1.2.13
-
None
Description
If you use a context property in your appenders pattern, there will be a significant logging slowdown. In my experience anywhere from 3 to 5 times slower (this will depend on the appender).
I believe that as soon as you use a context property log4net will internally access the windows user name even though it's not the property you want to access. This theory comes from the fact that printing all properties in the pattern (including the costly property username) compared to just printing one will slow down the logging with the same factor.
I've made a stackoverflow question with more details as well
Attachments
Attachments
Issue Links
- duplicates
-
LOG4NET-421 Inclusion of UserName in composite properties dictionary has a significant performance impact
- Closed
- is broken by
-
LOG4NET-205 Allow filtering by Identity / UserName / ThreadName and Domain
- Resolved
- is duplicated by
-
LOG4NET-533 Log4Net version 1.2.15.0 uses much more CPU than 1.2.11.0
- Closed
- is related to
-
LOG4NET-454 Intermittent severe slowdown with RollingFileAppender+MinimalLock
- Open
- links to