469,348 Members | 1,305 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

What are pros any cons to use eaccelerator and zend optimizer onphp5?

What are pros any cons to use eaccelerator and zend optimizer on
php5-mod with apache2.2 ??

Does accelerators work immediately after install on all php files?
When both are in use which accelerate speed execution of php files? How
can i find that??
Apr 14 '07 #1
7 2883
ar*********@poczta.onet.pl wrote:
Does accelerators work immediately after install on all php files?
Yep. Well, you need to restart Apache, but your installer may do that for
you.
When both are in use which accelerate speed execution of php files? How
can i find that??
Not sure, I only use eAccelerator.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 15 '07 #2
Toby A Inkster wrote:
ar*********@poczta.onet.pl wrote:
>Does accelerators work immediately after install on all php files?

Yep. Well, you need to restart Apache, but your installer may do that for
you.
>When both are in use which accelerate speed execution of php files? How
can i find that??

Not sure, I only use eAccelerator.
Toby,

since you have quite a lot of experience under your belt, could you tell
us why you chose eAccelerator over Zend (Which afaik is the de facto
default when installing Apache) ? I never even looked beyond Zend to be
honest.

TIA
Sh.
Apr 15 '07 #3
Schraalhans Keukenmeester wrote:
since you have quite a lot of experience under your belt, could you tell
us why you chose eAccelerator over Zend (Which afaik is the de facto
default when installing Apache) ? I never even looked beyond Zend to be
honest.
The Zend Optimiser certainly isn't any kind of default that I'm aware of.
Perhaps you're confusing it with the similarly named Zend Engine, which is
actually part of PHP? Neither eAccelerator nor ZO are included with Apache.
No PHP accelerator is included with Apache -- indeed, PHP isn't included
with Apache at all.

When choosing between them, I chose eAccelerator as it's open source,
whereas ZO isn't. Whatsmore, they use totally different techniques to
speed up PHP. ZO is an optimised compiler; eAccelerator is a bytecode
cache. In the majority of situations, eAccelerator will give you a much
bigger speed-up.

Zend also make a bytecode caching product, which is now integrated into
their "Zend Studio" product.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 15 '07 #4
On Sat, 14 Apr 2007 17:28:41 +0200, "ar*********@poczta.onet.pl"
<ar*********@poczta.onet.plwrote:
>What are pros any cons to use eaccelerator and zend optimizer on
php5-mod with apache2.2 ??
They don't do quite the same thing; eAccelerator is mainly a bytecode cache
[1], whereas Zend Optmizer doesn't cache [2], but it can speed up the code.

Your performance gains depend on where your bottlenecks are - Zend Opt will
give you most gain on large, processing-intensive scripts, but bytecode caching
from eAccelerator may help more if you have relatively large scripts or load
some larger libraries - as with most things, it depends.
>Does accelerators work immediately after install on all php files?
Both named above do, anyway.
>When both are in use which accelerate speed execution of php files? How
can i find that??
I doubt you can use them both together?

[1] Although eAccelerator has an optimiser - but from what I remember it was
similar to APC's optimiser - not really the main focus of the extension, and
unlikely to be as effective as Zend's.

[2] It looks like you have to go to the full Zend Platform product to get
bytecode caching as well.
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 15 '07 #5
On Sun, 15 Apr 2007 09:08:42 +0100, Toby A Inkster
<us**********@tobyinkster.co.ukwrote:
>ar*********@poczta.onet.pl wrote:
>When both are in use which accelerate speed execution of php files? How
can i find that??

Not sure, I only use eAccelerator.
Have you had any stability issues? I've tried a few products, and the ones
with the greatest performance gain for my applications were APC and
eAccelerator.

However, under load testing both eventually triggered segfaults, so I couldn't
go live with them. It's presumably an interaction with one of the libraries I'm
using (for example, apc has long had trouble with HTML_QuickForm), but I
couldn't track it down - it appeared to show up as memory corruption leading to
segfaults in subsequent requests, making it a pain to trace back.

What configuration are you using - this was as an Apache 2.2 module on 64-bit
Linux.
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 15 '07 #6
Andy Hassall wrote:
Have you had any stability issues?
Not yet.
What configuration are you using - this was as an Apache 2.2 module on
64-bit Linux.
$ uname -a
Linux ophelia.g5n.co.uk 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686 Pentium III (Coppermine) unknown GNU/Linux
$ /usr/sbin/httpd -version
Server version: Apache/2.0.54
Server built: Jan 5 2006 11:10:01
$ php -v
PHP 5.0.4 (cli) (built: May 11 2006 14:16:00)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.3, Copyright (c) 2004-2004 eAccelerator, by eAccelerator

I have other servers, but I've not needed to install eAccelerator on them
just yet.

And yes, it is due a major upgrade.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 16 '07 #7
Andy Hassall wrote:
I doubt you can use them both together?
Apparently you can, though I've never tried. You need to install them in
alphabetical order.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 16 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

52 posts views Thread by Tony Marston | last post: by
1 post views Thread by Nick Mudge | last post: by
1 post views Thread by Toni | last post: by
3 posts views Thread by nntp | last post: by
5 posts views Thread by Fred | last post: by
121 posts views Thread by typingcat | last post: by
1 post views Thread by Xristos Nikolopoulos | last post: by
5 posts views Thread by =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.