From owner-freebsd-questions@FreeBSD.ORG Mon Mar 3 20:21:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 376711065675 for ; Mon, 3 Mar 2008 20:21:58 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 185F88FC13 for ; Mon, 3 Mar 2008 20:21:57 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 062D4EBC08; Mon, 3 Mar 2008 15:21:56 -0500 (EST) Date: Mon, 3 Mar 2008 15:21:56 -0500 From: Bill Moran To: Matthew Seaman Message-Id: <20080303152156.ddbddb3b.wmoran@potentialtech.com> In-Reply-To: <47CC568D.2000007@infracaninophile.co.uk> References: <975190.87342.qm@web54306.mail.re2.yahoo.com> <20080303133609.458b5635.wmoran@potentialtech.com> <47CC568D.2000007@infracaninophile.co.uk> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Patrick Dung , freebsd-questions@freebsd.org Subject: Re: Maximum number established TCP connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 20:21:58 -0000 In response to Matthew Seaman : > Bill Moran wrote: > > In response to Patrick Dung : > > > >> Hello > >> > >> I would like if there is a (countable) limit for the max TCP connection > >> of a Apache web server. > >> > >> Suppose: > >> 1. An apache web server serves a very big iso file. > >> 2. 5000 people tried to connect to the apache server to get the iso > >> file. > >> 3. They connect to the server gradually (not 5000 people starting at > >> the same moment). So that there will not be a problem caused by the TCP > >> backlog limit. > >> 4. There will be 5000 established TCP connections. > >> > >> Is it true that FreeBSD could handle 'unlimited' established TCP > >> connections as long as it has enough CPU power and memory? > > > > The FreeBSD limit on the number of open TCP connections is significantly > > higher than the Apache limit on the number of concurrent HTTP sessions. > > I believe Apache has a hard limit of 256. > > That's a compile-time option in apache-1.3.x -- you can set > APACHE_HARD_SERVER_LIMIT in /etc/make.conf to override the default of > 512 if required. > > However in apache-2.2.x it seems the limits are imposed entirely by > the MPM settings in httpd.conf -- at least, I cannot find any tunables > in the port Makefiles. Interesting. I found this: http://httpd.apache.org/docs/2.0/mod/mpm_common.html#serverlimit Which claims the hard limit is 20,000. So I guess my information is a bit out of date. -- Bill Moran http://www.potentialtech.com