Date: Thu, 10 Apr 1997 20:51:17 -0700 From: David Greenman <dg@root.com> To: Ian Struble <ian@ian.broken.net> Cc: freebsd-hackers@freebsd.org Subject: Re: UNIX/LOCAL sockets Message-ID: <199704110351.UAA01733@root.com> In-Reply-To: Your message of "Thu, 10 Apr 1997 15:56:45 PDT." <XFMail.970410174034.ian@ian.broken.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>I am having some problems with large numbers of local sockets(>30) open at one >time. I thought that I read somewhere that 30 was an internal limit for the >number of sockets but I can't remember, is this true? I thought it is set to >128 in sys/sys/socket.h as SOMAXCONN, but I'm not really sure anymore. I >guess I just want to know what the limit really is and how I could increase it >if it is only 30. Oh, the box this is running 2.1.6-RELEASE and Apache. All >the socket stuff is happening in some cgi's as well as the one's that are >created when you run fast-cgi's. I know ths message is pretty vague and >unclear but I hope someone can kind of guess what I am getting at and/or prod >me with a few choice questions :) You're a little confused about this. The number of sockets isn't limited by SOMAXCONN. The only limit that would affect that is the process open file limit. SOMAXCONN limits the number of unaccepted connections that can be outstanding in the queue at any given time. It sounds like you might need to increase the per-process file descriptor limit. That's just a guess, however. The guesses get more accurate with information, so if you could perhaps explain what "having some problems" is supposed to mean, this would help. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704110351.UAA01733>