HighTechTalks DotNet Forums  

Re: # of current physical Threads > 4 000 000 0000

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Re: # of current physical Threads > 4 000 000 0000 in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Henning Krause [MVP - Exchange]
 
Posts: n/a

Default Re: # of current physical Threads > 4 000 000 0000 - 12-18-2006 , 07:07 AM






Hello,

usually, performance counters are used with Increment() and Decrement()
call, not by setting the counter to its actual value.

So I guess, there were three more decrements than increments here...

Best regards,
Henning Krause

"Gabriel Lozano-Morán" <abuse (AT) frontbridge (DOT) com> wrote

Quote:
I find it strange that my # of physical threads is set to 4294967293 which
happens to be the maximum value of a 32-bit integer minus 3.

vecozo (AT) online (DOT) nospam> wrote in message
news:8D141D56-BC08-47B1-9B61-77C174388A50 (AT) microsoft (DOT) com...
hi,

The NET CLR LocksAndThreads\# of current physical Threads performance
counter on all our systems, for all our applications, exceeds 4 billion.
Does
this indicate a problem?

Regards,
Sebastian van Dijk



______________________________
www.VECOZO.nl





Reply With Quote
  #2  
Old   
Shawn B.
 
Posts: n/a

Default Re: # of current physical Threads > 4 000 000 0000 - 12-18-2006 , 03:24 PM






Quote:
usually, performance counters are used with Increment() and Decrement()
call, not by setting the counter to its actual value.

So I guess, there were three more decrements than increments here...

If that's the case, then there's a thread/memory leak. With that many
threads/locks, I suspect the machine is very slow and non - responsive. If
it is fast and very responsive, then the number simply means that the
decrement wasn't called the same number of times as increment or that it is
the wrong performance counter.


Thanks,
Shawn




Reply With Quote
  #3  
Old   
nicknux@gmail.com
 
Posts: n/a

Default Re: # of current physical Threads > 4 000 000 0000 - 12-27-2006 , 08:03 PM



It seems that it decremented from 0, giving you 0xFFFFFFFF
(4294967295). If it's less than this then the counter got incremented
after the incorrect decrement of 1 from 0.

Shawn B. wrote:
Quote:
usually, performance counters are used with Increment() and Decrement()
call, not by setting the counter to its actual value.

So I guess, there were three more decrements than increments here...


If that's the case, then there's a thread/memory leak. With that many
threads/locks, I suspect the machine is very slow and non - responsive. If
it is fast and very responsive, then the number simply means that the
decrement wasn't called the same number of times as increment or that it is
the wrong performance counter.


Thanks,
Shawn


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.