Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-814

High CPU usage by TimeoutScheduler due to JDK bug JDK-8129861

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • common
    • None

    Description

      TimeoutScheduler creates an instance of ScheduledThreadPoolExecutor with 0 core pool threads. There is a bug in JDK https://bugs.openjdk.java.net/browse/JDK-8129861 which causes high CPU usage if ScheduledThreadPoolExecutor is instantiated with 0 core pool threads. The bug was fixed in Java 9.

      Attachments

        1. flamegraph.svg
          558 kB
          Lokesh Jain
        2. RATIS-814.001.patch
          0.8 kB
          Lokesh Jain

        Issue Links

          Activity

            People

              ljain Lokesh Jain
              ljain Lokesh Jain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: