Re: process choking

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



Hello, StefanT!

S> I have a small http server and I use the HttpListner to listen for http
S> requests. In top of this httpListner I run some code that is taken about
S> 31 miliseconds to execute. My problem is when I have a very large number
S> of incomming requests my process is basiclly choking. My process is
S> using all the CPU without executing any line of my code.

S> Also if I check the CPU usage and a reject some requests the process is
S> not choking with the same speed but after a period of time I get the
S> same result.

S> Can someone tell how to hunt this issue ?

How do you process incomming requests? Synchronously or in async manner?

What you mean by choking? Response time increases or smth else?

Also under heavy load server response times will increase, however throughput will
remain constant ( I'm talking about HttpListener and http.sys ). It is normal for servers of
this type.



--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Relevant Pages

  • Re: Google and Python
    ... No an http server and application server are two different things. ... An http server services requests of a web server those requests can ...
    (comp.lang.python)
  • Re: Google and Python
    ... Python to write the web app with this custom http server. ... An http server services requests of a web server those requests can be for static files or for services of a local application in which case the request if forwarded on to the application. ...
    (comp.lang.python)
  • Re: What doesnt lend itself to OO?
    ... > system design within that context seriously). ... >>The first line exists in the server. ... > objects between client and server i.e. as far as the client code is ... the message data packet data in the server between requests, ...
    (comp.object)
  • Re: Client Server and Throttling
    ... Kernel paged pool is limited by the reserved area of address space, ... resources are allocated for the requests. ... When outlook PST files are located on a ... the server may run out of paged pool, ...
    (microsoft.public.vc.mfc)
  • Re: [Full-disclosure] Arbitrary DDoS PoC
    ... make multiple requests for just one of your requests, ... its resources to flood the targets resources. ... Not trying to really argue your examples, I'm just saying his script and ... intensive script/page on that server. ...
    (Full-Disclosure)