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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Why LSWS slower than Apache 1.3 on my server ?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2006, 06:05 PM
dredy dredy is offline
New Member
 
Join Date: Feb 2006
Posts: 3
Default Why LSWS slower than Apache 1.3 on my server ?

/usr/local/apache/bin/ab -n 500 -c 10 localhost:82/index.php

Server Software: Apache/1.3.34
Document Path: /index.php
Document Length: 34672 bytes

Concurrency Level: 10
Time taken for tests: 8.577 seconds
Complete requests: 500
Failed requests: 39
(Connect: 0, Length: 39, Exceptions: 0)
Broken pipe errors: 0
Total transferred: 17448165 bytes
HTML transferred: 17306165 bytes
Requests per second: 58.30 [#/sec] (mean)
Time per request: 171.54 [ms] (mean)
Time per request: 17.15 [ms] (mean, across all concurrent requests)
Transfer rate: 2034.30 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.0 0 23
Processing: 26 169 97.5 153 648
Waiting: 25 168 97.6 153 648
Total: 26 169 97.6 153 648

Percentage of the requests served within a certain time (ms)
50% 153
66% 181
75% 212
80% 225
90% 288
95% 362
98% 460
99% 549
100% 648 (last request)


/usr/local/apache/bin/ab -n 500 -c 10 localhost/index.php

Server Software: LiteSpeed
Server Port: 80

Document Path: /index.php
Document Length: 34672 bytes

Concurrency Level: 10
Time taken for tests: 9.484 seconds
Complete requests: 500
Failed requests: 28
(Connect: 0, Length: 28, Exceptions: 0)
Broken pipe errors: 0
Total transferred: 17530433 bytes
HTML transferred: 17457258 bytes
Requests per second: 52.72 [#/sec] (mean)
Time per request: 189.68 [ms] (mean)
Time per request: 18.97 [ms] (mean, across all concurrent requests)
Transfer rate: 1848.42 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 28 186 98.8 167 666
Waiting: 28 186 98.7 167 665
Total: 28 186 98.8 167 666
ERROR: The median and mean for the initial connection time are more than twice the standard
deviation apart. These results are NOT reliable.

Percentage of the requests served within a certain time (ms)
50% 167
66% 207
75% 240
80% 265
90% 310
95% 368
98% 441
99% 536
100% 666 (last request)

I already repeated this test with different -n and -c numbers but apache is faster than Lite Speed (standart) at all tests.

For example: with ab -n 1000 -c 1 options, got following results:
with Apache:
Requests per second: 35.84 [#/sec] (mean)
Time per request: 27.91 [ms] (mean)
Time per request: 27.91 [ms] (mean, across all concurrent requests)
Transfer rate: 1252.68 [Kbytes/sec] received

with LSWS:
Requests per second: 33.04 [#/sec] (mean)
Time per request: 30.27 [ms] (mean)
Time per request: 30.27 [ms] (mean, across all concurrent requests)
Transfer rate: 1150.26 [Kbytes/sec] received

I installed LSWS with default options. LS SAPI & TurckMMCache has been installed and php files runs correctly but slower than apache. I'm not using any php accelerator with Apache. (php version is: 4.3.11 with Apache)

What's wrong? What should i do? This server has ~300.000 unique visitors daily and i'm looking for more performance according to Apache..

Thanks
Reply With Quote
  #2  
Old 02-22-2006, 06:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You have to use the same version of php, and same opcode cache when you compare performance of two server. And same php.ini should be used.

LSWS std has slightly better PHP performance than apache 1.3 in our lab environment.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LSWS 3.0RC2 and trac-fcgi Erg CGI/Perl/Python 13 02-06-2009 12:16 PM
Expected memory usage? subBlue Install/Configuration 4 10-20-2006 02:39 PM
Proxying static content from apache to LSWS vip562 Install/Configuration 3 05-12-2006 02:27 PM
Does lsws has something similar to apache mod_proxy? elvis7 Install/Configuration 4 10-10-2005 01:18 AM
Testimonial : LSWS as web app frontend instead of Apache bogus Feedback/Feature Requests 1 03-26-2004 10:32 AM


All times are GMT -7. The time now is 05:30 AM.



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