Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I see have an application which is using 40,000 handles. Could this be causing my system to become sluggish and unresponsive? What number of handles can Windows have before it becomes unstable?

share|improve this question
    
Everything I'm seeing says the limit is 10K, but you're well beyond that. So, clearly something has changed. –  sysadmin1138 Aug 25 '10 at 16:52
2  
"If you have to ask what the maximum is, you're probably doing it wrong" - TheDailyWTF –  Chris S Aug 25 '10 at 17:17
    
Haha, good quote, I'm a huge The Daily WTF fan myself. –  nbolton Aug 29 '10 at 12:50
add comment

2 Answers 2

up vote 4 down vote accepted

Microsoft's Mark Russinovich provides lots of these kinds of tests on his blog.

See Pushing the Limits of Windows: Handles

share|improve this answer
2  
From the article "Any process that has more than a ten thousand handles open at any given point in time is likely either poorly designed or has a handle leak" And I have to agree. –  Chris S Aug 25 '10 at 17:16
add comment

Yes, this could easily be causing your system to become sluggish and unresponsive. Is it a homegrown application or commercial?

  1. Homegrown : fix the handle leak. Is something forgetting to close a file or TCP connection?
  2. Commercial : open a bug report and get that fixed.

For either, in the meantime, how long does it take for that many open handles to build up? Try restarting the process on an interval that won't affect your production environment, if you can.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.