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

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@qos.ch ReportedBy: qosbugzilla@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.

http://bugzilla.qos.ch/show_bug.cgi?id=150 ------- Comment #1 from qosbugzilla@bitcount.com 2008-05-01 18:02 ------- Created an attachment (id=33) --> (http://bugzilla.qos.ch/attachment.cgi?id=33&action=view) patch for LogbackMDCAdapter Patch for MDC to defer HashMap clone until needed for serialization/logging events -- 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.
participants (1)
-
bugzilla-daemon@pixie.qos.ch