From owner-freebsd-questions Wed Feb 28 23:29:55 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA12173 for questions-outgoing; Wed, 28 Feb 1996 23:29:55 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA12158 for ; Wed, 28 Feb 1996 23:29:52 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.6.12/8.6.5) with SMTP id XAA08719; Wed, 28 Feb 1996 23:30:04 -0800 Message-Id: <199602290730.XAA08719@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost didn't use HELO protocol To: sderdau@xtdl.com cc: questions@freebsd.org Subject: Re: System hosts response is slow. In-reply-to: Your message of "Thu, 29 Feb 1996 02:11:34 PST." <31357BD6.2372@xtdl.com> From: David Greenman Reply-To: davidg@Root.COM Date: Wed, 28 Feb 1996 23:30:04 -0800 Sender: owner-questions@freebsd.org Precedence: bulk >I have a few p75's with 64mgs of ram ea. I have web pages >on these systems. At times when calling up a web page on one >of the boxes the response is very very slow. Any suggestions >will be helpful. Disregarding the speed of the modems phone line >and anything external to the system. We have a few pages on >the system that are getting alot of hits. > >There has to be a way to get these systems to respond alot >faster. Many times the message server did not respond or is >too busy comes up when calling up the pages. Or the information >will come through dog slow. Disregarding the sizes of any >gif jpegs or anything. The response is just way too slow. > >Do I have to get a bigger system to handel this. It is not >like there are ton's of pages on our system. A few. And these >do get many many hits. You didn't mention which version of FreeBSD you are using. The problem is likely caused by the listen queue limit being too low, causing some connection requests to get dropped. Check the value of "SOMAXCONN" in /sys/sys/socket.h. Make sure this is 128 (it is probably much lower if you are running 2.1R or older FreeBSD). Also make sure that the second argument to the listen() syscall in your web server has a value that is large, 128 for instance. The actual value that the kernel uses will be limited to SOMAXCONN. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project