From owner-freebsd-hackers Thu Apr 10 20:51:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA23660 for hackers-outgoing; Thu, 10 Apr 1997 20:51:24 -0700 (PDT) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA23655 for ; Thu, 10 Apr 1997 20:51:20 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id UAA01733; Thu, 10 Apr 1997 20:51:17 -0700 (PDT) Message-Id: <199704110351.UAA01733@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Ian Struble cc: freebsd-hackers@freebsd.org Subject: Re: UNIX/LOCAL sockets In-reply-to: Your message of "Thu, 10 Apr 1997 15:56:45 PDT." From: David Greenman Reply-To: dg@root.com Date: Thu, 10 Apr 1997 20:51:17 -0700 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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