Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3965

threads configuration status generates invalid results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: webconsole-4.0.0
    • Fix Version/s: webconsole-4.2.0
    • Component/s: Web Console
    • Labels:
      None

      Description

      I'm quite surprised, that nobody noticed that "Threads" tab in Configuration Status generates invalid result.

      There are two problems:

      1. The number of reported threads in the status is incorrect.
      The reason is that we are enumerating all threads in all thread groups. However in some JVMs enumerating the root thread group will return all threads. So we count the threads at least twice - once being enumerated from the root group, and once - from their own thread group.

      2. Some threads are not printed at all.
      Our comparators doesn't guarantee that the null elements in the array will always get at the end of the array. So occasionally we can get a sorted array with nulls in front. Then, if we print one the first N (the actual thread count) from the array. Nulls are skipped, but the counter is increased, so finally some threads remain unprinted.

        Attachments

          Activity

            People

            • Assignee:
              v_valchev Valentin Valchev
              Reporter:
              v_valchev Valentin Valchev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: