Discussion:
[jira] [Updated] (LOG4J2-869) Monitor contention at org.apache.logging.log4j.core.util.Loader.*
Lucas Pouzac (JIRA)
10 years ago
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lucas Pouzac updated LOG4J2-869:
--------------------------------
Attachment: monitor_contention_log4j.png
...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Lucas Pouzac (JIRA)
10 years ago
Permalink
Lucas Pouzac created LOG4J2-869:
-----------------------------------

Summary: Monitor contention at org.apache.logging.log4j.core.util.Loader.*
Key: LOG4J2-869
URL: https://issues.apache.org/jira/browse/LOG4J2-869
Project: Log4j 2
Issue Type: Improvement
Components: Core
Affects Versions: 2.0.2, 2.0.1, 2.1
Reporter: Lucas Pouzac
Fix For: 2.1, 2.0.2
Attachments: monitor_contention_log4j.png

Loader.initializeClass() / Loader.loadClass() indirectly calls Class.forName0(), which calls into JRE lib method causing monitor contention. See screen shot

Fix by caching values returned by Class.forName() in a static ConcurrentMap



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Remko Popma (JIRA)
10 years ago
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-869:
-------------------------------
Fix Version/s: (was: 2.0.2)
(was: 2.1)
...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...