Socket creation error: Window handle allocation failed: Windows error #8

We have a server with 12 gb rams on it. Our application runs threads about 1500-2000. Also our stack size of main application is 1 mb.

We periodically get the error message Socket Creation Error:....

What can be the resolution for it. I definitely need gurus for the answers.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

depending on your windows version, you might have a maximum number of handles per process of 10.000. as you can see in this KB:
you can see if this is the case by running process explorer (from sysinternals: ) and look at the number of handles and threads.

another problem can be the way you create threads. see the following blog entry on this issue:
(I know you mentioned application stack, but thread stack is more important in this case :)

and obviously it also depends on what the threads are creating. you might have a socket leakage somewhere ;)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
why a C grade?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.