473,385 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 3087
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

52
by: Tony Marston | last post by:
Several months ago I started a thread with the title "What is/is not considered to be good OO programming" which started a long and interesting discussion. I have condensed the arguments into a...
1
by: Nick Mudge | last post by:
Hi, Does anybody know the performance difference between having your PHP code cached and just running your code with the zend optimizer? Is there much difference? Nick
1
by: Toni | last post by:
I've tried to reinstall the zend environment and debugger on my new computer. I almost succeeded but when I try to debug or profile a webpage by clicking on the buttons on the toolbars I get the...
3
by: nntp | last post by:
What is ZEND. Why it has anything to do with programming PHP?
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
5
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
1
by: Xristos Nikolopoulos | last post by:
Hello, I have made an application that needs to upload files, the application is deployed in several folders, and each folder has its php files. The problem is, I have in the folder I want to...
5
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.