php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35228 Php is slow under Mac OS X 10.4
Submitted: 2005-11-15 17:11 UTC Modified: 2005-11-15 18:15 UTC
From: nicolas dot ross at cybercat dot ca Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 4.4.1 OS: Mac OS X 10.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicolas dot ross at cybercat dot ca
New email:
PHP Version: OS:

 

 [2005-11-15 17:11 UTC] nicolas dot ross at cybercat dot ca
Description:
------------
Php is slow under Mac OS X 10.4 (tiger). All php code that is not "simple" is slow. Page generation time is ranging from 8 to 15 seconds for page normally taking less than 1 second. I've tracked down the problem to a system-call filesystem related problem

Please see those threads :

http://marc.theaimsgroup.com/?l=php-dev&m=113200357113670
http://marc.theaimsgroup.com/?t=112670317500004
for more details, and the solution I've found.

Reproduce code:
---------------
- Take a php app (forum like phpbb, gallery2, mambo cms, or others)
- Use it under Mac OS X 10.4
- Any version of php was tried and confirmed to experience major slowdown: Stock php from Mac OS X, all official php 4.3.x, 4.4.x
- Any recent version of apache, default configure and compile: apache 1.3.33, 2.0.55.

Apache configure line used :
/configure --enable-so --enable-modules=most --enable-mods-shared=max --enable-proxy --enable-ssl

Php configure line used :
./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-experimental-zts --with-mysql=/usr/local/mysql --with-fbsql --with-xml --enable-ftp --with-curl=/sw --with-zlib --with-png-dir=/sw --with-jpeg-dir=/sw --with-gd --with-ttf=/sw --with-freetype-dir=/sw --enable-track-vars --enable-trans-id --disable-debug

All options were striped down except mysql and --enable-track-vars --enable-trans-id --disable-debug with no more restult.

Expected result:
----------------
less than 1 second page generation time for the a test site using mambo CMS

Actual result:
--------------
8 to 15 second of page generation time. During this time, the actual apache thread that serves the request eats 100% of the cpu time.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-15 18:07 UTC] sniper@php.net
Don't use --enable-experimental-zts (it will definately break things!)

 [2005-11-15 18:15 UTC] nicolas dot ross at cybercat dot ca
Maybe, but still it makes php works ok under mac os x 10.4. Without it, php is slow, hell slow.
 [2010-09-01 18:38 UTC] djpumpkin at gmail dot com
I know this is an old thread - but I can also confirm that Php is slow under Mac 
OS X 10.4

I've been trying to build a web development environment on 10.4 and have 
experienced the 15 second page load times as described here.

I have seen the proposed solution here: http://marc.info/?l=php-
general&m=113198556215028&w=2  but can find no way to implement this.

How can I fix this?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 12:01:29 2025 UTC