[jira] [Created] (IGNITE-7508) GridKernalContextImpl::isDaemon creates contention on system properties access

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-7508) GridKernalContextImpl::isDaemon creates contention on system properties access

Anton Vinogradov (Jira)
Stanislav Lukyanov created IGNITE-7508:
------------------------------------------

             Summary: GridKernalContextImpl::isDaemon creates contention on system properties access
                 Key: IGNITE-7508
                 URL: https://issues.apache.org/jira/browse/IGNITE-7508
             Project: Ignite
          Issue Type: Bug
          Components: general
            Reporter: Stanislav Lukyanov


GridKernalContextImpl::isDaemon reads system property IGNITE_DAEMON on every call, leading to contention on the system properties lock. The lock is shown as contended in the Java Mission Control analysis of a JFR recording of the IgnitePutGetBenchmark.

The fix would be to cache IGNITE_DAEMON value (e.g. in IgniteUtils) since it isn't supposed to be changed during the JVM's lifetime anyway.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)