Re: why so many open files?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: why so many open files?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: why so many open files?  
Shea Martin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-04 11:02 PM

Nick Landsberg wrote:
> Shea Martin wrote:
> 
>
>
>
> Hmmm... 50 requests per minute.
>
> If the "holding time" of this socket averaged 5 seconds,
> then, during any given average period of time, you
> would be holding 250 sockets open.
>
> If the clients start to time out and *all* hold the
> socket open for 10 seconds, you would need 500
> file descriptors to handle that situation.
>
> (N (number of sockets) = Arrival Rate of requests
>        * Holding Time of socket).
>
> If you can't increase the fd's per process, reduce the
> timeout to 5 seconds rather than 10.  5 will almost
> guarantee you safety, unless the the holding time
> of a valid request is substantially longer than
> the timeout time.  In this case you have to do
> complex arithmetic regarding stuff such as Erlang
> blocking factors.
>

The average length of a request is much less than a second.  I think that ma
in
problem is leaked file descriptors.

But I  am going to change the close-wait time anyway.

~S





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:17 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register