hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Benchmark result : Lighttpd vs Apache 1.3.36 vs Apache 2.2.2
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Benchmark result : Lighttpd vs Apache 1.3.36 vs Apache 2.2.2

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2006, 05:19 PM
goolex goolex is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 868
Thumbs up

Benchmark result : Lighttpd vs Apache 1.3.36 vs Apache 2.2.2


HardWare : AMD 64 3000+ , 1 GIG RAM
OS : Centos 4.3 32bit
Kernel : 2.6.17

Web Servers
Lighttpd 1.4.11 : php 4.4.2 ( fastcgi ) + eaccelerator
Apache 1.3.36 : php 4.4.2 + eaccelerator
Apache 2.2.2 : php 4.4.2 + eaccelerator

Tests :
1.jpg 80 KB
1.tar.gz 2.5MB
hello.php , simple hello world script

PHP Code:
ab -n 10000 -c 10 127.0.0.1/1.jpg

Lighttpd
Requests per second
:    5211.05 [#/sec] (mean)

Apache 1.3.36
Requests per second
:    2220 [#/sec] (mean)

Apache 2.2.2
Requests per second
:    3883.50 [#/sec] (mean) 
PHP Code:
ab -n 10000 -c 10 127.0.0.1/1.tar.gz

Lighttpd
Requests per second
:    357.05 [#/sec] (mean)

Apache 1.3.36
Requests per second
:    149.23 [#/sec] (mean)

Apache 2.2.2
Requests per second
:    375.02 [#/sec] (mean) 
PHP Code:
ab -n 10000 -c 10 127.0.0.1/hello.php

Lighttpd
Requests per second
:    2474.63 [#/sec] (mean)

Apache 1.3.36
Requests per second
:    2946.10 [#/sec] (mean)

Apache 2.2.2
Requests per second
:    3657.64 [#/sec] (mean) 

Reply With Quote


Sponsored Links
  #2  
Old 07-03-2006, 05:41 PM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
LOL fudge, power to you brother, tHANK you for that....

if you had tested apache 2.0.58, your tests would have been 100% complete!!!! and then it would be truely even better, but thanks for this!

Reply With Quote
  #3  
Old 07-03-2006, 06:04 PM
goolex goolex is offline
Web Hosting Master
 
Join Date: Jul 2004
Posts: 868
Quote:
Originally Posted by mouseattack
LOL fudge, power to you brother, tHANK you for that....

if you had tested apache 2.0.58, your tests would have been 100% complete!!!! and then it would be truely even better, but thanks for this!
done
PHP Code:
Apache 2.0.58

1.jpg
Requests per second
:    3590.66 [#/sec] (mean)

1.tar.gz
Requests per second
:    329.61 [#/sec] (mean)

Hello.php
Requests per second
:    3029.39 [#/sec] (mean) 

Reply With Quote
Sponsored Links
  #4  
Old 07-03-2006, 06:10 PM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
YOU ROCK! Thanks so much, I reformatted to include ALL 4 test's done by Goolex.

Quote:
ab -n 10000 -c 10 127.0.0.1/1.jpg

Lighttpd
Requests per second: 5211.05 [#/sec] (mean)

Apache 1.3.36
Requests per second: 2220 [#/sec] (mean)

Apache 2.0.58
Requests per second: 3590.66 [#/sec] (mean)

Apache 2.2.2
Requests per second: 3883.50 [#/sec] (mean)

Quote:
ab -n 10000 -c 10 127.0.0.1/1.tar.gz

Lighttpd
Requests per second: 357.05 [#/sec] (mean)

Apache 1.3.36
Requests per second: 149.23 [#/sec] (mean)

Apache 2.0.58
Requests per second: 329.61 [#/sec] (mean)

Apache 2.2.2
Requests per second: 375.02 [#/sec] (mean)


Quote:
ab -n 10000 -c 10 127.0.0.1/hello.php

Lighttpd
Requests per second: 2474.63 [#/sec] (mean)

Apache 1.3.36
Requests per second: 2946.10 [#/sec] (mean)

Apache 2.0.58
Requests per second: 3029.39 [#/sec] (mean)

Apache 2.2.2
Requests per second: 3657.64 [#/sec] (mean)

Reply With Quote
  #5  
Old 07-03-2006, 06:15 PM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
seems like I see that images do REALLY well served through lighttpd but compared to apache 2.2.2, apache 2.2.2 wins all hands down over everything else by a land slide....

What options did you compile all of these with? bare minimums or included all those include statements I saw when i compiled 2.2.2 on my test machine?

Now what we really need to do is have LIGHTTPD serve images only, and apache 2.2.2 serve php and html and everthign else huh? I'm sure many people have already done this, just haven't shared here yet...

man this sure does make me feel stupid for backing 1.3.36 , lol...

Reply With Quote
  #6  
Old 07-03-2006, 06:45 PM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,625
Like I said before, 2.2 rocks.

Quote:

Now what we really need to do is have LIGHTTPD serve images only, and apache 2.2.2 serve php and html and everthign else huh? I'm sure many people have already done this, just haven't shared here yet...
mod_proxy is what you want.

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #7  
Old 07-03-2006, 06:57 PM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
really it's mod proxy that I need?

I was thinking that you just don't add the "addtype" line to the httpd.conf of apache 2.2.2, and then have a virtual entry in lighttpd for the same domain, and ONLY have it answer img requests similar by ONLY having whatever is equivalent to addtype on httpd for .jpg .gif .jpeg .png on lighttpd, and run lighttpd on port 81 instead of port 80 where httpd is running.....

would this work or am I just dreaming agian, which is more efficient?

my friend who knows linux alot better than I, gave me some tips on how to make apache use LESS ram and LESS cpu.....

he told me to recompile ONLY with the most important needed modules, so I recompiled with mod rewrite on apache 1.3.36 ( going to upgrade to 2.2.2 very soon ) and recompiled php 4.4.2 ONLY with curl and mbstring, and that is all, no other flags.

Is he right in this that this is more efficient, instead say if I compiled php with FTP, ming, xml, and gd as well as curl, and recompiled apache with --enable-shared=all , would it be a huge fall pit?

He also informed me to comment all the unneeded apache includes out that i didn't need in efforts of optimization....


example:

cpanel / centos 4.3 / apache 1.3.36

copied from httpd.conf
Quote:

LoadModule rewrite_module libexec/mod_rewrite.so
#LoadModule expires_module libexec/mod_expires.so
LoadModule php4_module libexec/libphp4.so
#LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
#LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
LoadModule gzip_module libexec/mod_gzip.so

# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
#AddModule mod_expires.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
#AddModule mod_frontpage.c
AddModule mod_php4.c
#AddModule mod_bwlimited.c
AddModule mod_log_bytes.c
#AddModule mod_auth_passthrough.c
AddModule mod_gzip.c

as you can see i commented out anything i didn't know what it was specifically, lol...... loll..............

Reply With Quote
  #8  
Old 07-03-2006, 07:17 PM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,625
Addtype line?

I usually proxy images requests to lighttpd from apache.

He is right about it being faster.

Apache 2.2 rocks 1.3 anyday of the week.


./configure --prefix=/usr/local/apache --enable-rewrite --enable-ssl --enable-so

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #9  
Old 07-03-2006, 07:21 PM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
lol, man do you love 2.2.2 or do you LOVE 2.2.2 ?

heh... glad he's right, i will continue to comment unneeded lines out lol, if it breaks something, just uncomment

Reply With Quote
  #10  
Old 07-03-2006, 09:21 PM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,625
I use apache 2.2 on several large vbulletin forum clusters. Once you got 2.2 you never go back

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #11  
Old 07-03-2006, 09:37 PM
layer0 layer0 is offline
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,340
Steven,

Have you ran 2.2.2 on a cPanel box by any chance? (Or tried running, rather)

__________________
MediaLayer, LLC - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!

Reply With Quote
  #12  
Old 07-03-2006, 09:46 PM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,625
Quote:
Originally Posted by elix
Steven,

Have you ran 2.2.2 on a cPanel box by any chance? (Or tried running, rather)

I have tried, and it "kind of works", however you must hand build the entire configuration file. 2.2 splits it into many files as includes. Regular suexec doesnt work correctly however. If you have time and the energy it can be done.

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #13  
Old 07-03-2006, 09:55 PM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
what other optimization did you do for "Several large forums", vb uses mysql, duh, so i'm wondering what a true professional like yourself Steven uses for /etc/my.cnf and any other tweaking in httpd.conf and php.ini for large forums? ( might as well tweak everything while i'm at it) I am working on that kernel upgrade but aside from that it'd be nice to know some kick butt settings for those files, playing the guessing game isn't working too well, and well, lol, who has time to read 1,000+ documentation over ay mysql.org about high performance tweaking.... they should just make the default high performance, that way save everyone some time!

~Mouse

Reply With Quote
  #14  
Old 07-04-2006, 01:06 AM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,625
Every cluster is setup to fit the setup, no one size fits all. Depends on the kind of querys

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #15  
Old 07-04-2006, 03:00 AM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692
ok recompiled kernel yet again, same issue... Will post entire .config in the morning, I did not see the iptable setting anywhere in that .config , but no kernel panic thank god? heh....

~mouse

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Netcraft Continues to See a Drop in Responses for July 2012 Web Survey Web Hosting News 2012-07-03 14:35:26
nginx Sees Largest Market Share Growth in Netcraft March Server Survey Web Hosting News 2012-03-05 14:05:29
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
The Apache Software Foundation Launches Hadoop v1.0 Web Hosting News 2012-01-05 18:29:16
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?