From owner-freebsd-questions@FreeBSD.ORG Wed Nov 3 17:22:50 2004 Return-Path: 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 F2DFC16A4CE for ; Wed, 3 Nov 2004 17:22:49 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id C307D43D45 for ; Wed, 3 Nov 2004 17:22:49 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id CD80A12AE54; Wed, 3 Nov 2004 13:22:47 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21215-07; Wed, 3 Nov 2004 17:22:47 +0000 (GMT) Received: from ganymede.hub.org (blk-222-46-91.eastlink.ca [24.222.46.91]) by hub.org (Postfix) with ESMTP id 4FD5512AE50; Wed, 3 Nov 2004 13:22:47 -0400 (AST) Received: by ganymede.hub.org (Postfix, from userid 1000) id A8D243E0C8; Wed, 3 Nov 2004 13:22:46 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id A4F3A3E0B1; Wed, 3 Nov 2004 13:22:46 -0400 (AST) Date: Wed, 3 Nov 2004 13:22:46 -0400 (AST) From: "Marc G. Fournier" To: freebsd-questions@freebsd.org Message-ID: <20041103130445.W82047@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org cc: php Subject: Apache 1.3 'lag' with PHP ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 17:22:50 -0000 I'm trying to track down an odd problem, and getting almost no where with it :( When you go to http://www.postgresql.org/index-test.php, at the bottom, there is 'load times' based on various settings throughout the code ... the file reads in one file, and has two database access sections to it ... timings look like: loading globals.php: -0.237975 loading loading news : 0.013936 loading loading events: 0.007907 total load time: -0.212738 The problem is when you go that page, it seems to 'hang' for a few seconds before loading ... even using lynx on the same machine ... there are currently 31 IPs allocated to that machine, and the apache server is running within a FreeBSD jail environment ... apache is the latest 1.3.31 ... php is 4.3.9 ... both are from FreeBSD ports, so php is a module, and it loads up its extensions as seperate modules, based on /usr/local/etc/php/extensions.ini ... Using iostat, drives aren't busy ... swap usage is around 5M ... and top reports that InAct memory is hovering around 1G ... We have MinSpareServers set to 15, Max set to 30 ... Note that I'm doing most of my testing on the server itself, using lynx, so I'm not dealing with 'Net lag or anything ... Is there something that I should be looking at to make things react faster? One note ... if you go to http://www.postgresql.org, which is static HTML, it comes up instantly ... its only when hitting a .php page that the lag appears to arise ... Is there something else that I should be looking at to optimize things? Or to track down the slowdown? Thanks ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664