Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6698

Thread Usage Health Check

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Health Check
    • None

    Description

      This health check should use java.lang.management.ThreadMXBean to provide the following:

      • A quick overview what an instance is doing via http (there are many other means of monitoring, but there is nothing easier than using the HC servlet). This works well as all relevant tasks in sling (requests, jobs, schedulers) set the thread name to a meaningful name. The list of threads shall be sorted from busiest to idlest and by default only the top 3 are shown (top 10 if CPU is > 15%). Using hcDebug=true will show all threads.
      • It should WARN if all threads are highly utilised (but never send CRITICAL as a fully utilised instance is not necessarily a problem)
      • It should use the deadlock detection of ThreadMXBean to send CRITICAL

      Attachments

        1. threads-hc-idle.png
          80 kB
          Georg Henzler
        2. threads-hc-warn.png
          153 kB
          Georg Henzler

        Activity

          People

            Unassigned Unassigned
            henzlerg Georg Henzler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: