Re: Thread Practices

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Well, first of all, thanks for the post. But the server is a shared
Web Server, has a different, legacy Chat Application on it, amongst
others. When I restart the services, it only gets it down to about 580
processes or so. However, I am open to suggestions. I am not
currently with the web service calls using asynchronous calls, but that
shouldn't be hard to implement. That would be the place, correct?


Barry Kelly wrote:
dkisting@xxxxxxxxxxxxxx wrote:

What is the best way to recycle threads (and/or increase the number
allotted threads) from the thread pool. I have c# chat service which
many users connect. I have implemented some better thread managment
because I was seeing tons of "Not enough threads in thread pool to
complete operation" and my application would hang.

Are you using asynchronous I/O (i.e. BeginRead / BeginReceive /
BeginSend / BeginWrite / BeginAccept etc.) to avoid blocking calls to
I/O routines? That is necessary to scale to large numbers of clients.

Now, this seems to have taken care of the enough threads error message
I was seeing, however normally when the Threads in the performance tab
of the task manager hit around 750 (which seems low), the application
bottlenecks and doesn't do anything.

750 is a frighteningly high number, to me! It either means that you've
got ~750 concurrent CPU-bound operations (on a chat server?) - or you're
not using asynchronous I/O when you should be.

-- Barry

--
http://barrkel.blogspot.com/

.



Relevant Pages

  • Re: [PHP] web based chat app
    ... the idea is to make online user on my website to chat to each other. ... i am thinking to use sqlite3 because it is fast but afraid it cannot handle ... load to the web server. ...
    (php.general)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... web server itself is part of the group. ...
    (alt.php)
  • [ISecAuditors Advisories] Arbitrary remote file creation in 123flashchat server
    ... Arbitrary remote file creation in 123flashchat server. ... 123 Flash Chat is a full featured java chat server and flash chat ... By default it is enabled and anybody can create a chat account. ...
    (Bugtraq)
  • RE: System.Data.SqlClient "Timeout expired" causing ASP.net web applic
    ... There are many values here that can shutdown the aspnet_wp. ... > update tables on a Web Server running SQL Server 2000. ... > formation(DataSet currentBalances): Timeout expired. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: web service architecture question
    ... To assume that we have all the security we will ever need is a bad one. ... ways to breach a server, and the separatin of the web and app server is one ... You can use remoting or web services. ... The web server will be exposed outside the ...
    (microsoft.public.dotnet.framework.webservices)