Edit report at http://bugs.php.net/bug.php?id=35228&edit=1

 ID:                 35228
 Comment by:         djpumpkin at gmail dot com
 Reported by:        nicolas dot ross at cybercat dot ca
 Summary:            Php is slow under Mac OS X 10.4
 Status:             Bogus
 Type:               Bug
 Package:            Performance problem
 Operating System:   Mac OS X 10.4
 PHP Version:        4.4.1
 Block user comment: N

 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------
[2005-11-15 18:15:57] 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.

------------------------------------------------------------------------
[2005-11-15 18:07:56] sni...@php.net

Don't use --enable-experimental-zts (it will definately break things!)



------------------------------------------------------------------------
[2005-11-15 17:11:26] 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.


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=35228&edit=1

Reply via email to