Forums / Developer / Performence on Lighttpd

Performence on Lighttpd

Author Message

Kim Johansen

Wednesday 13 June 2007 11:55:10 pm

Hi all!

I got good news for you all!

Lighttpd will give you up to 80% performence boost on a default eZ publish 3.9.2 site!

I will keep you updated on the work I have done here. Some articles are comming.

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Bruce Morrison

Thursday 14 June 2007 2:09:48 am

Hi Kim

Wow, that's a massive increase. I take it that it's against apache?

Looking forward to some more information on this.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Xavier Dutoit

Thursday 14 June 2007 7:34:38 am

Hi,

I'm afraid to report that although I didn't run a proper benchmark, the difference wasn't that blowing.

I can run your bench on my machine once you've sent me the details.
X+

http://www.sydesy.com

Kim Johansen

Wednesday 25 July 2007 4:59:40 am

Hi,

I got a test enviroment up and running now.

Hardware:

IBM HS21 Blade
Dual Dual Core Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
8GB Mem
Raid 1

Software:
Suse Linux Enterprise Server 10 SP1
apache 2.2.3
lighttpd 1.4.10
php 4.4.7
mysql 5.0.26
apc 3.0.14
ez 3.9.2 (default install with webin)

ab2 -n 1000 -c 25 http://<host>/

Server Software: Apache/2.2.3
Server Hostname: <host>
Server Port: 80

Document Path: /
Document Length: 18159 bytes

Concurrency Level: 25
Time taken for tests: 29.548356 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 18595000 bytes
HTML transferred: 18159000 bytes
Requests per second: 33.84 [#/sec] (mean)
Time per request: 738.709 [ms] (mean)
Time per request: 29.548 [ms] (mean, across all concurrent requests)
Transfer rate: 614.55 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 119 734 517.3 612 6601
Waiting: 107 555 419.9 476 5841
Total: 119 734 517.3 612 6601

Server Software: lighttpd
Server Hostname: <host>
Server Port: 80

Document Path: /
Document Length: 18280 bytes

Concurrency Level: 25
Time taken for tests: 23.501722 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 18713000 bytes
HTML transferred: 18280000 bytes
Requests per second: 42.55 [#/sec] (mean)
Time per request: 587.543 [ms] (mean)
Time per request: 23.502 [ms] (mean, across all concurrent requests)
Transfer rate: 777.56 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 470 578 113.9 540 1156
Waiting: 456 562 108.8 526 1142
Total: 470 578 113.9 540 1156

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

zurgutt -

Wednesday 25 July 2007 5:25:01 am

Useful comparision, however it would be even very much more useful if you gave exact configuration details that you used, this includes complete settings for mysql, apache, php and apc. The ez performance is surely much more influenced by good setup of these components than by just type of http server used. It would make an excellent example to follow by others and additionally fine-tune.

At least for me, I have very similarly specced hardware but get poorer performance, so something must be off somewhere, more details on your setup would be very much appreciated! Great work!

Certified eZ developer looking for projects.
zurgutt at gg.ee

André R.

Wednesday 25 July 2007 7:27:56 am

> Some articles are coming.
When ? I'm still waiting :)
And if you really want to show Lighty from it's best side you should also do a bench on static cache setup!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Kim Johansen

Tuesday 31 July 2007 6:13:12 am

Hi André,

It will be available in the end of August. I'm Soon done with the benchmarks, with interesting results:)

I have not notified any issues on the functionality on eZ publish when using lighttpd as webserver so far.

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Xavier Dutoit

Monday 06 August 2007 9:19:43 am

Hi,

As for using the static cache, I couldn't make it work without having to use mod_magnet, and learning it is on my list ;)

On that topic, Paul+Kristof have a nice hack who sets a cookie upon authentication and so you can serve static cache to anonymous and the cusotmised php content for the others.

X+

http://www.sydesy.com

Kristof Coomans

Friday 10 August 2007 12:46:39 am

I've seen a couple of topics on Lighttpd now on the forum, maybe it would be nice to have a page on eZpedia about the setup? ;)

By the way, the hack Xavier is talking about is listed under the forum topics here: http://ezpedia.org/wiki/en/ez/static_content_cache

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Björn Dieding@xrow.de

Friday 10 August 2007 5:00:29 am

@Xavier

Hi do you have any status if this hack/patch goes into the core? We might need it too. It is a very usefull one.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

eZ debug

Timing: Jan 18 2025 15:05:52
Script start
Timing: Jan 18 2025 15:05:52
Module start 'content'
Timing: Jan 18 2025 15:05:53
Module end 'content'
Timing: Jan 18 2025 15:05:53
Script end

Main resources:

Total runtime1.4404 sec
Peak memory usage4,096.0000 KB
Database Queries225

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.7031180.8438
Module start 'content' 0.00781.3129 768.5469853.0313
Module end 'content' 1.32070.1196 1,621.5781353.3203
Script end 1.4403  1,974.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2684210.0002
Check MTime0.00150.1032210.0001
Mysql Total
Database connection0.00090.065210.0009
Mysqli_queries1.330492.36482250.0059
Looping result0.00260.18252230.0000
Template Total1.401797.320.7008
Template load0.00210.144320.0010
Template processing1.399697.166420.6998
Template load and register function0.00020.016310.0002
states
state_id_array0.00150.102110.0015
state_identifier_array0.00120.081520.0006
Override
Cache load0.00210.14451080.0000
Sytem overhead
Fetch class attribute can translate value0.00140.098580.0002
Fetch class attribute name0.00390.2723160.0002
XML
Image XML parsing0.00410.283180.0005
class_abstraction
Instantiating content class attribute0.00000.0023170.0000
General
dbfile0.00340.2337590.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
22content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 54
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs