[logback-dev] [Bug 150] New: LogbackMDCAdapter allocates new HashMap for every MDC call

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu May 1 17:58:00 CEST 2008


http://bugzilla.qos.ch/show_bug.cgi?id=150

           Summary: LogbackMDCAdapter allocates new HashMap for every MDC
                    call
           Product: logback-core
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
        AssignedTo: logback-dev at qos.ch
        ReportedBy: qosbugzilla at bitcount.com


A new HashMap is allocated in logback's MDC implementation for every call to
MDC.put and MDC.remove. 

This can lead to excessive garbage collector load in performance critical code
that makes very frequent use of MDC, such as asynchronous network and file IO
code. 

For certain programs it is critical to have MDC capability in code hotspots,
where MDC is a valuable debugging tool as applied to TRACE and DEBUG
statements. 

The current implementation causes a load on the garbage collector even when
logging is turned off.


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list