Not enough free threads in the ThreadPool

W

Wil Burton

I am getting this error on a request to a webservice
after a long running one completes. Does this make sense
to anybody? Of course it doesn't always happen but it
does pretty regularly.
 
K

krishna

If there are too many concurrent connections to a long
running web service, asp.net may run out of threads.
You can configure asp.net threading by changing
processmodel section of machine.config. But increasing
threads in asp.net thread pool on a single processor
machine may have side effects (I don't remember the side
effects, sorry!).
You may also look at some asynchronous solution which
runs your web service in a seperate thread that does not
belong to asp.net thread pool.
Here is the link to an MSDN article.
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnservice/html/service07222003.asp

Krishna
 
W

Wil Burton

I looked at performance on the server in question. I
looked at the Thread\aspnet_w01...\ThreadState counter
there were 20 of them. They were all in the wait state,
which leads me to believe there were plenty of threads in
the threadpool. Also, its is pretty decent sized machine
(2 proc PIII + 1GB RAM) and the load on the server was
minimal.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top