[ https://issues.apache.org/jira/browse/IGNITE-8587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503047#comment-16503047 ]
ASF GitHub Bot commented on IGNITE-8587: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/ignite/pull/4059 > High Contention in GridToStringBuilder.toStringImpl > ----------------------------------------------------- > > Key: IGNITE-8587 > URL: https://issues.apache.org/jira/browse/IGNITE-8587 > Project: Ignite > Issue Type: Bug > Affects Versions: 2.4 > Reporter: Sergey Kosarev > Assignee: Sergey Kosarev > Priority: Major > Fix For: 2.6 > > > org.apache.ignite.internal.util.tostring.GridToStringBuilder#classCache > implemented as > ordinal HashMap with all operations syncronised by one ReadWriteLock. > this can trigger high contention as this class widely used in toString() > methods. > For instance it shoots when DEBUG or TRACE logs are enabled as count of > toString() invocations increases in this case extremely. > We need to use ConcurrentHashMap instead and avoid global locks. -- This message was sent by Atlassian JIRA (v7.6.3#76005)