linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* running out of file descriptors
@ 2009-02-16  5:48 Bryan Christ
  2009-02-16  6:18 ` Joe Damato
  0 siblings, 1 reply; 10+ messages in thread
From: Bryan Christ @ 2009-02-16  5:48 UTC (permalink / raw)
  To: linux-c-programming

I am writing a multi-threaded application which services hundreds of
remote connections for data transfer.  Several instances of this
program are run simultaneously.  The problem is that whenever the
total number of active user connections (cumulative total of all open
sockets tallied from all process instances) reaches about 700 the
system appears to run out of file descriptors.  I have tried raising
the open files limit via "ulimit -n" and by using the setrlimit()
facility.  Neither of these seem to help.  I am currently having to
limit the number of processes running on the system to 2 instances
allowing no more than 256 connections each.  In this configuration the
sever will run for days without failure until I stop it.  If I try to
add a third process or restart one of the process with a higher
connection limit, bad things will start happening at about 700 open
sockets.

Thanks in advance to anyone who can help.

-- 
Bryan
<><

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-02-18  7:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16  5:48 running out of file descriptors Bryan Christ
2009-02-16  6:18 ` Joe Damato
2009-02-16  7:09   ` Bryan Christ
2009-02-16 13:01     ` Eric Bambach
2009-02-16 17:35       ` Bryan Christ
2009-02-16 21:43         ` Glynn Clements
2009-02-17 18:51           ` Bryan Christ
2009-02-18  7:07             ` Holger Kiehl
2009-02-16 13:06     ` Glynn Clements
2009-02-16 17:39       ` Bryan Christ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).