Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: php performance optimization |
|
Author |
|
shnazz
Joined: 22 Sep 2006 Posts: 7
|
Posted: Fri 22 Sep '06 23:16 Post subject: php performance optimization |
|
|
Hi all,
First I wanted to say that this site has been a GREAT resource for my WAMP setups.
I have a development web server using the php 5.1.6 and apache 2.2.3 from this site, with some pretty hefty php scripts being run. CPU utilization sometimes gets scary, but the pages always get served. My tests have pointed me in the direction of php being the cpu hog, but I have not used any kind of software to do this, just common sense (if there is a good resource to determine this...). I am going to be using these php scripts on a live server that WILL be getting a lot more traffic. The live site will be hosted on a more powerful server, but the cpu utilization still worries me.
I have seen many php code optimizers, like Zend Optimizer, Zend Studio, turck mmcache and apc. Which one has turned out to work the best in your various experiences?
The Zend Optimizer and Zend Platform have system requirements of "Apache 2.0.x (compiled in prefork mode only!)" and my understanding is that windows is compiled with mpm_winnt not prefork. I have seen posts of ppl here using Zend Optimizer; how is this possible? Also does Zend Platform optimize performance more than the Zend Optimizer?
Any specific and/or general help would be greatly appreciated
- shnazz |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Sat 23 Sep '06 0:14 Post subject: |
|
|
i've used a few of these before... Zend Optimizer gave me the best results (the prefork notice is only for unix compatible systems, there is a windows version aswel).
Although carful scripting can reduce load as wel.
First make the client cache as much as possible... content only change on avg. of 10 min? cache it for 5 and stuff like that. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3096 Location: Hilversum, NL, EU
|
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Sun 24 Sep '06 0:16 Post subject: |
|
|
Steffen wrote: | Zend Optimizer is not cashing.
Steffen |
that not what i was implying...
I said if you code your scripts carfully a lot of caching can be done at the client side to reduce load on your server but its a lot of work though. |
|
Back to top |
|
shnazz
Joined: 22 Sep 2006 Posts: 7
|
Posted: Mon 25 Sep '06 1:10 Post subject: |
|
|
I've gone ahead and configured APC and have noticed some nice speed increases. I ran into some namespace issues, but resolved these. Thank you.
I am still curious about the differences between Zend Optimizer, APC, and Zend Platform from a performance optimization perspective.
Thanks again!
- shnazz |
|
Back to top |
|
|
|
|
|
|