UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > VPS Hosting - Virtual Private Servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 17-01-2008, 23:57
mephisto's Avatar
Senior Member
 
Join Date: Feb 2007
Location: Darlington
Posts: 101
Send a message via ICQ to mephisto Send a message via MSN to mephisto
Default Apache vs Lighttpd

I've just installed lighttpd and done some benchmark tests to compare it with apache. My test was to serve a css file, so server side logic going here, just plan text.

My first test was with keep-alives off

Apache
Code:
# ab -c 100 -n 1000 http://tdd.org.uk/css/style.css
...
Requests per second:    7391.09 [#/sec] (mean)
Lighttpd
Code:
# ab -c 100 -n 1000 http://tdd.org.uk:82/css/style.css
...
Requests per second:    7267.92 [#/sec] (mean)
So at first they are about the same, then I used keep-alives in my test.

Apache
Code:
# ab -c 100 -n 1000 -k http://tdd.org.uk/css/style.css
...
Requests per second:    12578.93 [#/sec] (mean)
Lighttpd
Code:
# ab -c 100 -n 1000 -k http://tdd.org.uk:82/css/style.css
...
Requests per second:    16324.93 [#/sec] (mean)
Once keep-alives are turned on, lighttpd performs much better than Apache giving better requests per second. I configured apache and lighttpd to have the same keep-alives settings, max number etc so to keep a fair test.

One thing to note is that each apache child process uses approximatly 95MB of memory, whereas each lighthttpd process uses about 3MB of memory.

There are probably things apache can do that lightttpd can't, but for pretty standard to mid-advanced stuff (yes you can still do rewrites, php etc) then lighttpd does seem to win.

These tests were all done on a L-VPS Hosting-01 VPS Hosting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 18-01-2008, 00:18
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,812
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hello Robert,

Here's what one of our System Admins have said :-

"One thing to note is that each apache child process uses approximately 95MB of memory, whereas each lighthttpd process uses about 3MB of memory."
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18-01-2008, 09:23
mephisto's Avatar
Senior Member
 
Join Date: Feb 2007
Location: Darlington
Posts: 101
Send a message via ICQ to mephisto Send a message via MSN to mephisto
Default

Quote:
Originally Posted by eUKHost.com
Here's what one of our System Admins have said :-

"One thing to note is that each apache child process uses approximately 95MB of memory, whereas each lighthttpd process uses about 3MB of memory."
I'm a bit confused, that's what I said....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 18-01-2008, 12:52
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,812
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by mephisto View Post
I'm a bit confused, that's what I said....
my mistake

Not sure what went wrong with me when I replied.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 22-01-2008, 20:45
new member
 
Join Date: Jan 2008
Posts: 1
Default

Let me guess, you didn't disable all the modules so UNLIKE Lighttpd, Apache had all it's modules running? You didn't list to conf files so I can't confirm if this is true, and listing them now won't help because it could be a setup. I'm not saying Apache is better then Lighttpd or Vice Versa I'm just saying, I doubt it was actually truly fair. Real benchmarking and testing requires a lot more then default installs with and without fcgi-d and keep-alive. Everybody knows that Apache has more going on by default then Lighttpd because Apache is Corporate aimed and Lighttpd isn't (for the most part).

On that note, if one of your system admins at eukHost can't clean up Apache to use a slim amount of Memory for a shared or corporate environment, he needs to be fired because that is Apache and HTTPD 101 material. We learn that in basic Administration.

Last edited by envygeeks; 22-01-2008 at 20:49.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 24-01-2008, 12:34
mephisto's Avatar
Senior Member
 
Join Date: Feb 2007
Location: Darlington
Posts: 101
Send a message via ICQ to mephisto Send a message via MSN to mephisto
Default

Quote:
Originally Posted by envygeeks
Let me guess, you didn't disable all the modules so UNLIKE Lighttpd, Apache had all it's modules running?
Erm not exactly, I compile apache from source, so do use a pre-packages apache. I disabled the php module, which is the only loadable module I normally used. As for lighttpd, I opened up all similar modules that were compiled into apache, eg. mod_rewrite.

Quote:
Originally Posted by envygeeks
I'm not saying Apache is better then Lighttpd or Vice Versa I'm just saying, I doubt it was actually truly fair. Real benchmarking and testing requires a lot more then default installs with and without fcgi-d and keep-alive. Everybody knows that Apache has more going on by default then Lighttpd because Apache is Corporate aimed and Lighttpd isn't (for the most part).
I'm not saying one is better than the other either, I'm just providing some of my test results. Neither of these are default installs either, I just tried to make them as close to each other as possible.

If you like I could do the test again, but turn everything off, so they are just capable of serving static files. What else would you like me to benchmark as part of the tests?

Quote:
Originally Posted by envygeeks
On that note, if one of your system admins at eukHost can't clean up Apache to use a slim amount of Memory for a shared or corporate environment, he needs to be fired because that is Apache and HTTPD 101 material. We learn that in basic Administration.
This is nothing to do with eUKHosts, this is purely my own doing. I don't work for eUKHosts, I just rent a VPS Hosting from them, but inside the VPS Hosting eUKHosts haven't configured a thing, like I mentionned above, I compile from source.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 15:59.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service