LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > litespeed slower than apache?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2008, 04:36 AM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
Default litespeed slower than apache?

Hi I've just installed a trial enterprise edition on a directadmin and noticed that it is a bit slower than apache.

I can just notice the difference right away without even performing a benchmark.

I'm on a quad-core intel on 4gb ram.

Is this because the trial litespeed enterprise i'm using is not a 4 cpu version?

Also I noticed that some of the sites I have which uses .htaccess rewrites, do not seem to work. When I check the error logs, it just says redirected to itself error.

And out of the box, it was on PHP 4 so i used the admin to compile with PHP5 w/xcache. But after it finished and restarted lsws, I notice that it is still running php4?
So I went to fcgi-bin and just renamed the symlink so lsphp would use lsphp-5.2.5. Is this the correct way to do this?


Thanks

Last edited by furimedia; 03-02-2008 at 04:39 AM..
Reply With Quote
  #2  
Old 03-02-2008, 10:02 AM
jhost82 jhost82 is offline
New Member
 
Join Date: Mar 2008
Posts: 3
hi,

i also generated today trial key and starting test with directadmin too...
When we complete installatio i can post full report.. how do you proceeded with installation?
__________________
Marco Mangione
Ceo Of Dnshosting.it and Joomlahost.it
Reply With Quote
  #3  
Old 03-02-2008, 11:45 AM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
Okay so after performing some benchmarks, it show Litespeed is indeed slower than apache.


I'm using Apache 2 w/ mod_php. Not even running xcache etc...and it still outperforms litespeed? Are there some additional configurations I should do after I install litespeed to make it optimized?

Here are some apachebench numbers:

Apache
----------------------
Document Path: /
Document Length: 27679 bytes

Concurrency Level: 10
Time taken for tests: 60.472908 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 28073599 bytes
HTML transferred: 27695221 bytes
Requests per second: 16.54 [#/sec] (mean)
Time per request: 604.729 [ms] (mean)
Time per request: 60.473 [ms] (mean, across all concurrent requests)
Transfer rate: 453.34 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.2 0 16
Processing: 298 602 151.4 579 1310
Waiting: 0 29 22.2 22 218
Total: 298 602 151.4 579 1310

Percentage of the requests served within a certain time (ms)
50% 579
66% 646
75% 692
80% 715
90% 786
95% 874
98% 996
99% 1140
100% 1310 (longest request)


Litespeed
-----------------------
Document Path: /
Document Length: 24962 bytes

Concurrency Level: 10
Time taken for tests: 103.835695 seconds
Complete requests: 1000
Failed requests: 288
(Connect: 0, Length: 288, Exceptions: 0)
Write errors: 0
Total transferred: 33982552 bytes
HTML transferred: 33637552 bytes
Requests per second: 9.63 [#/sec] (mean)
Time per request: 1038.357 [ms] (mean)
Time per request: 103.836 [ms] (mean, across all concurrent requests)
Transfer rate: 319.60 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 236 1001 1151.2 792 11410
Waiting: 62 426 745.8 363 10077
Total: 236 1001 1151.2 792 11410

Percentage of the requests served within a certain time (ms)
50% 792
66% 954
75% 1116
80% 1241
90% 1714
95% 2026
98% 2418
99% 9453
100% 11410 (longest request)



I am actually testing it on several php apps with several other benchmarking tools(siege), (wordpress, joomla, magento) and they all show relevant results.


Can someone help me to understand why this is happening? I'd have expected even the Litespeed's standard edition would outperform Apache and the results of the Enterprise edition is you can say, dissapointing.

Anyone else tried performing some benchmarks on it?

Is this because mod_php is faster than fcgi?

Last edited by furimedia; 03-02-2008 at 11:47 AM..
Reply With Quote
  #4  
Old 03-02-2008, 12:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by jhost82 View Post
hi,

i also generated today trial key and starting test with directadmin too...
When we complete installatio i can post full report.. how do you proceeded with installation?

http://www.litespeedtech.com/support...wiki:apache:da
Reply With Quote
  #5  
Old 03-02-2008, 01:00 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by furimedia View Post
Can someone help me to understand why this is happening? I'd have expected even the Litespeed's standard edition would outperform Apache and the results of the Enterprise edition is you can say, dissapointing.

Anyone else tried performing some benchmarks on it?

Is this because mod_php is faster than fcgi?
I think there is something wrong with your LiteSpeed setup, I believe that, you have PHP opcode cache with Apache mod_php, but not with litespeed, please check the phpinfo page produced by both server.

You have to edit the php.ini to enable xcache, it wont enabled if you just compile PHP with xcache option.

And you should use the same PHP version and the same opcode cache for both setup.
Reply With Quote
  #6  
Old 03-02-2008, 01:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
make sure "PHP suEXEC Max Conn" is >10 if you use PHP suEXEC in your test.
LiteSpeed start PHP process dynamically, so it will affect the benchmark a little.
You should do a warm-up test run first and discard the result, like

ab -n 100 -c 10 ...

So, the PHP processes will get started, then start your official test immediately before those php processes get killed off by web server.
Reply With Quote
  #7  
Old 03-02-2008, 01:12 PM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
No on my apache, i do not even have xcache or other opcodes enabled, because I was getting segfaults and it is not safe for my production needs.

But with litespeed, i have enabled xcache from within php.ini as well as setting up xcache's config settings.


As for the performance, even without benchmarking I can clearly tell a difference.

I have a ySlow also on my firefox and it just seem to load a second slower than apache.
Reply With Quote
  #8  
Old 03-02-2008, 01:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by furimedia View Post
No on my apache, i do not even have xcache or other opcodes enabled, because I was getting segfaults and it is not safe for my production needs.

But with litespeed, i have enabled xcache from within php.ini as well as setting up xcache's config settings.
If you do not use opcode cache for Apache, you should not use it for LiteSpeed either. maybe some problem with opcode cache. Always keep your test environment consistent, it is fair to everyone.

Quote:
As for the performance, even without benchmarking I can clearly tell a difference.

I have a ySlow also on my firefox and it just seem to load a second slower than apache.
It definitely not right.
Are you keep both Apache and LiteSpeed running at the same time when you do the benchmark? Is Apache also taking the live traffic? Is you server IO Wait high?

You should only have one server running when you do the test. If Apache causes high I/O wait of the server, it will definitely affect the performance of LSWS.
Reply With Quote
  #9  
Old 03-02-2008, 11:31 PM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
Thanks for the reply Mr Wang.

But now I have completed the change from Apache to Litespeed and now I am trying to gauge whether I notice any performance gains but I don't see any, if not slower?

First of all I am on a 100mbit connection and usually a blog site with lots of images which is hosted on my server used to all download almost instantly.

But now, the images tend to load slowly and almost looks as if it is loading progressively.

Is this some feature of litespeed or have i misconfigured something? Is there way to maximize the performance of litespeed? Or is this because im on quad core but only using a 2-core trial license?

Please let me know at your earliest. Thanks.
Reply With Quote
  #10  
Old 03-02-2008, 11:48 PM
furimedia furimedia is offline
Senior Member
 
Join Date: Mar 2008
Posts: 58
I'm wondering if the default Litespeed sets it so it throttles your bandwidth?

Things like loading images, seem to be a lot slower on litespeed than on apache, why?
Reply With Quote
Reply

Thread Tools
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 Off

Forum Jump


All times are GMT -7. The time now is 01:22 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.