From owner-freebsd-performance@FreeBSD.ORG Mon Feb 5 11:39:52 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5EDA516A494 for ; Mon, 5 Feb 2007 11:39:46 +0000 (UTC) (envelope-from garcol@postino.it) Received: from abraham.elitel.it (vdisk2.elitel.it [212.34.224.151]) by mx1.freebsd.org (Postfix) with SMTP id C2F9013C4B3 for ; Mon, 5 Feb 2007 11:39:44 +0000 (UTC) (envelope-from garcol@postino.it) Received: (qmail 24868 invoked by uid 65534); 5 Feb 2007 11:39:23 -0000 X-Spam-Checker-Version: SpamAssassin on abraham.elitel.it X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.2 tests=BAYES_00,NO_REAL_NAME autolearn=no Received: from 212.63.96.97 ([212.63.96.97]) by www.postino.punto.it (IMP) with HTTP for ; Mon, 5 Feb 2007 12:39:23 +0100 Message-ID: <1170675563.45c7176b1ce0b@www.postino.punto.it> Date: Mon, 5 Feb 2007 12:39:23 +0100 From: garcol@postino.it To: "freebsd-performance@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 212.63.96.97 Subject: PHP Performance problem after upgrade to 5.1.6 or 5.2.0 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2007 11:39:52 -0000 Hi, > * Miroslav Lachman (000.fbsd at quip.cz) wrote: > > >>I have performance problem with PHP after upgrading from PHP 5.1.4 to >>newer version regardles if newer version is 5.1.6 or 5.2.0. I tested >>both with same result. > > > Every time I upgrade PHP and see a performace regregression like this, > it's been a result of forgetting to update eAccelerator, or whatever > flavour of the year PHP bytecode cache is at the time. > > If you're sure your cache is loading (i.e. it shows up in phpinfo() > and isn't logging errors on startup), you might find it useful to grab > backtraces from busy processes (the source tarball includes a .gdbinit > that allows you to grab PHP backtraces too, provided you're compiling > with debug symbols enabled) to see where they might be spending their > time. I am not using any PHP bytecode cache. About one year ago I tried eAccelerator which causes Apache freeze. Now I installed ZendOptimizer and load increased!! by 50% :o( -- Miroslav Lachman The upgrade from 5.1x to 5.2x make same change into memory utilizzation (ex. Zend memory manager) and apache2 SAPI. (try to check the apache memory utilizzation) You can check the php-5.2.0 changelog to find out some important change for yours applications (no fixed bug) or retry with new version of php. Alessandro