Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webservices
Not enough free threads in the ThreadPool
Wil Burton
8/11/2003 7:32:00 PM
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.
2 Answers
krishna
8/12/2003 5:01:00 AM
0
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/de...
url=/library/en-us/dnservice/html/service07222003.asp
Krishna
>-----Original Message-----
>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.
>.
>
Wil Burton
8/12/2003 1:30:00 PM
0
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.
>-----Original Message-----
>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/de...
>url=/library/en-us/dnservice/html/service07222003.asp
>
>Krishna
>>-----Original Message-----
>>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.
>>.
>>
>.
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Not enough free threads in the ThreadPool
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password