From owner-freebsd-questions@FreeBSD.ORG Fri Jun 30 08:08:43 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 100AE16A417 for ; Fri, 30 Jun 2006 08:08:43 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6234A43D53 for ; Fri, 30 Jun 2006 08:08:41 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id k5U88cBl060813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 30 Jun 2006 15:08:39 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id k5U88c42075685; Fri, 30 Jun 2006 15:08:38 +0700 (ICT) Date: Fri, 30 Jun 2006 15:08:38 +0700 (ICT) Message-Id: <200606300808.k5U88c42075685@banyan.cs.ait.ac.th> From: Olivier Nicole To: questions@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: Subject: Slow server 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: Fri, 30 Jun 2006 08:08:43 -0000 Hi, I am trying to deal with a server that is getting slower and slower. Machine is based on a AMD Opteron(tm) Processor 244 with 4GB memory. It is running MySQL, and Apache 13 and serving about 400 web sites written in PHP. OK the design of PHP is certainly not the most efficient, but actually the server cannot hold 50 simultaneous http connections. I am wondering: 1) what optimization I should look for in the system 2) as there are many connections comming from search engines siders (90% of all the established connections), I'd like to limit the ressources that spiders are using. One way would be through IPFW, but are there better ways? Is there a way to limit/prioritize in Apache (not that I know any). Best regards, Olivier