Usless PHP Accelerator with lots of inserts?

Author Message

Eivind Marienborg

Monday 11 April 2005 3:39:12 am

I've been talking to my host admin about PHP accelerator to boost the speed of my eZ Publish installation. But he claims that with the amount of INSERTs the system does, the accelerator will have to recompile the PHP scripts all the time, and thus create more overhead in pre/-compiling than it would without the accelerator.

I don't have any experience with accelerators, so I can't say that I know one way or the other. But I assume there's a reason the community seems to be consistent in recommending PHP accelerators.

<b>So I just wanted to hear with the eZ community: How does the recommended accelerators work? Do they recompile everything when content is published, or just related PHP files? Is there any point in installing a PHP accelerator with great amount of content publishing?</b>

The site in question has a very active community, with forum posts every 2-5 minutes, in some periods.

The average response time with caching enabled, but no PHP accelerator, is between 4-5 to 10-20 seconds.

Bård Farstad

Monday 11 April 2005 4:01:04 am

Eivind,

I think your ISP is a bit confused about what a PHP Accelerator does. A compiled and accelerated PHP script does exactly the same as a non-compiled PHP script, but only much faster. SQL statements has nothing to do with PHP Acceleration.

With eZ publish it roughly double the performance.

We are running APC here on ez.no, other accelerators works great as well.

--bård

Documentation: http://ez.no/doc

Eivind Marienborg

Monday 11 April 2005 4:11:44 am

Thanks for the reply, Bård! I'll give my ISP another call :)

Bård Farstad

Monday 11 April 2005 4:47:58 am

Any time Eivind.

--bård

Documentation: http://ez.no/doc

Eivind Marienborg

Monday 11 April 2005 6:45:32 am

By the way.. Which accelerator do you recommend?

Bård Farstad

Monday 11 April 2005 6:52:24 am

Eivind,

any accelerator will do the job. I personally like APC best.

--bård

Documentation: http://ez.no/doc

Halvor M

Sunday 17 April 2005 9:46:51 am

Which PHP accel would you reccomend for EX running on a winXP server? (Apache 2.0 server)

Ekkehard Dörre

Monday 18 April 2005 1:31:25 am

eAccelerator

You can easily test it with

http://www.apachefriends.org/en/xampp-windows.html

on your xp machine. Take the
ZIP archive or
EXE (7-zip) Selfextracting 7-ZIP archive
then there are no entries in regestry und you can just delete it. You can use it from USB-Stick, too.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 06:22:26
Script start
Timing: Jan 19 2025 06:22:26
Module start 'layout'
Timing: Jan 19 2025 06:22:26
Module start 'content'
Timing: Jan 19 2025 06:22:27
Module end 'content'
Timing: Jan 19 2025 06:22:27
Script end

Main resources:

Total runtime1.3479 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.2891152.6406
Module start 'layout' 0.00620.0027 741.929739.4766
Module start 'content' 0.00891.3375 781.4063673.8125
Module end 'content' 1.34650.0014 1,455.218820.1250
Script end 1.3478  1,475.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2344160.0002
Check MTime0.00130.0969160.0001
Mysql Total
Database connection0.00090.064210.0009
Mysqli_queries1.274894.5811760.0168
Looping result0.00080.0591740.0000
Template Total1.314797.520.6573
Template load0.00190.142720.0010
Template processing1.312797.392120.6564
Template load and register function0.00010.007010.0001
states
state_id_array0.00130.094110.0013
state_identifier_array0.00100.075320.0005
Override
Cache load0.00170.1247430.0000
Sytem overhead
Fetch class attribute can translate value0.00090.063440.0002
Fetch class attribute name0.00110.0798110.0001
XML
Image XML parsing0.00180.130040.0004
class_abstraction
Instantiating content class attribute0.00000.0026150.0000
General
dbfile0.00180.1368290.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs