Not enough free threads in the ThreadPool

Discussion in 'ASP .Net Web Services' started by Wil Burton, Aug 11, 2003.

  1. Wil Burton

    Wil Burton Guest

    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, Aug 11, 2003
    #1
    1. Advertising

  2. Wil Burton

    krishna Guest

    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
    >-----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.
    >.
    >
    krishna, Aug 12, 2003
    #2
    1. Advertising

  3. Wil Burton

    Wil Burton Guest

    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/default.asp?
    >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, Aug 12, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bruce barker

    Re: ThreadStaticAttribute and threadpool

    bruce barker, Jul 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    502
    bruce barker
    Jul 11, 2003
  2. Richard G
    Replies:
    0
    Views:
    381
    Richard G
    Jul 31, 2003
  3. Scott Allen
    Replies:
    1
    Views:
    1,939
    Henri
    Dec 14, 2004
  4. Douwe
    Replies:
    0
    Views:
    717
    Douwe
    Dec 8, 2005
  5. Replies:
    3
    Views:
    1,085
    Samuel R. Neff
    Oct 17, 2007
Loading...

Share This Page