[
https://issues.apache.org/jira/browse/IGNITE-10497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706910#comment-16706910
]
Dmitriy Sorokin commented on IGNITE-10497:
------------------------------------------
Originally, implementation of LongJVMPauseDetector was static and there was one
jvm-pause-detector-worker per JVM. After implementation of IGNITE-8426
LongJVMPauseDetector ceased to be static and becomes a property of IgniteKernal.
I propose not only refactor LongJVMPauseDetector for using one per JVM
jvm-pause-detector-worker, but, moreover, use GarbageCollectorMXBean if it
available, and use jvm-pause-detector-worker only if not because it has
negative effect as incorrect detection of debug pauses as stw-pauses too.
> jvm-pause-detector-worker should be JVM singleton
> -------------------------------------------------
>
> Key: IGNITE-10497
> URL: https://issues.apache.org/jira/browse/IGNITE-10497
> Project: Ignite
> Issue Type: Task
> Reporter: Anton Vinogradov
> Assignee: Dmitriy Sorokin
> Priority: Major
> Labels: newbie
> Fix For: 2.8
>
>
> Debugging tests I see the following:
> {noformat}
> [2018-11-30 20:36:46,284][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest9] Possible too
> long JVM pause: 5861 milliseconds.
> [2018-11-30 20:36:46,287][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest4] Possible too
> long JVM pause: 5863 milliseconds.
> [2018-11-30 20:36:46,288][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest3] Possible too
> long JVM pause: 5864 milliseconds.
> [2018-11-30 20:36:46,288][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest2] Possible too
> long JVM pause: 5864 milliseconds.
> [2018-11-30 20:36:46,289][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest1] Possible too
> long JVM pause: 5864 milliseconds.
> [2018-11-30 20:36:46,290][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest0] Possible too
> long JVM pause: 5865 milliseconds.
> [2018-11-30 20:36:46,286][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest6] Possible too
> long JVM pause: 5863 milliseconds.
> [2018-11-30 20:36:46,286][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest8] Possible too
> long JVM pause: 5863 milliseconds.
> [2018-11-30 20:36:46,286][WARN
> ][jvm-pause-detector-worker][CacheConsistencyCheckOnReadTest5] Possible too
> long JVM pause: 5862 milliseconds.
> {noformat}
> Is there any reason to have more that one thread at one JVM?
> Let's make jvm-pause-detector-worker static singleton.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)