Search code examples
c#multithreadingperfmon

Perfmon - # logical threads explodes


I experience that a single, particular w3wp process jumps up to an astonishing +400.000.000.000 logic threads according to perfmon.

I have added screenshots of perfmon in "zoomed in" and "zoomed out" mode. It looks like the jumps happens at the same time that the physical thread count of the same process falls.

The actual value of the logic thread count is 4,294,967,294 - 1 less than the highest possible uint-value, which leads me to that it could be the value -1 overflowed.

Zoomed in Zoomed out

Does anyone know if this is actually a bug as mentioned in this referenced stackoverflow post? Incredible number of logical threads; windbg can't see them?

Or does anyone have any other explanation or debugging suggestions?


Solution

  • I concluded that this was a threading race bug based on the value and the answer from Hans Passant.