• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2081
  • Last Modified:

Apache Vs Litespeed

I have benchmarked a site on litespeed server and my apache server result as given below

is there any way to make it faster without using litespeed like this
[root@lin ~]# ab -n 1000 -c 5 http://www.maksihayat.net/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.maksihayat.net (be patient)
apr_sockaddr_info_get() for www.maksihayat.net: Unknown error 14642 (14642)
[root@lin ~]# ab -n 1000 -c 5 http://www.xxxx.net/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.xxxx.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        LiteSpeed
Server Hostname:        www.xxxx.net
Server Port:            80

Document Path:          /
Document Length:        112087 bytes

Concurrency Level:      5
Time taken for tests:   153.531852 seconds
Complete requests:      1000
Failed requests:        998
   (Connect: 0, Length: 998, Exceptions: 0)
Write errors:           0
Total transferred:      112172205 bytes
HTML transferred:       111963205 bytes
Requests per second:    6.51 [#/sec] (mean)
Time per request:       767.659 [ms] (mean)
Time per request:       153.532 [ms] (mean, across all concurrent requests)
Transfer rate:          713.49 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       51   52   1.1     52      64
Processing:   576  712  72.3    700    1219
Waiting:      202  259  41.5    253     690
Total:        629  765  72.2    752    1270

Percentage of the requests served within a certain time (ms)
  50%    752
  66%    777
  75%    794
  80%    806
  90%    848
  95%    890
  98%    949
  99%   1085
 100%   1270 (longest request)



[root@lin ~]# ab -n 1000 -c 5 http://www.xxxx.net/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.xxxx.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        Apache/2.2.3
Server Hostname:        www.xxxx.net
Server Port:            80

Document Path:          /
Document Length:        111451 bytes

Concurrency Level:      5
Time taken for tests:   202.26541 seconds
Complete requests:      1000
Failed requests:        998
   (Connect: 0, Length: 998, Exceptions: 0)
Write errors:           0
Total transferred:      112113955 bytes
HTML transferred:       111870955 bytes
Requests per second:    4.95 [#/sec] (mean)
Time per request:       1010.133 [ms] (mean)
Time per request:       202.027 [ms] (mean, across all concurrent requests)
Transfer rate:          541.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   2.2      0      42
Processing:   616 1007 233.2   1004    2319
Waiting:      243  425 137.0    418     941
Total:        616 1007 233.2   1004    2319

Percentage of the requests served within a certain time (ms)
  50%   1004
  66%   1105
  75%   1168
  80%   1206
  90%   1289
  95%   1399
  98%   1507
  99%   1577
 100%   2319 (longest request)

Open in new window

0
CahitEy
Asked:
CahitEy
  • 5
  • 4
1 Solution
 
arober11Commented:
Are you using an Apache Worker or MPM build, see:

http://www.devside.net/articles/apache-performance-tuning

and have you altered you httpd.conf accordingly?

Are you using any of the Apache caching modules, see:  http://httpd.apache.org/docs/2.2/caching.html
0
 
CahitEyAuthor Commented:
That is a good start but this is seems like for windows
0
 
fosiul01Commented:
I never use litespeed , dont even know whats that

ab is a good tool to stress test

but i never liked it actually

to me .. Basic Apache configuration file is really good if your site has 250 Concurrent hits

250 concurrent ,w hich meant 250 people will acess your server a time

so you open  netstat -ant | grep 80

you will see 80 connections

if you have this situations till your Apache default con-fig will work really good

now you need to tell me,.. how  many hits your server getting ??

how much ram you got ?

whats the minspare server and max spare server setting of  your httpd.conf ??




0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
fosiul01Commented:
have a look this one, i got this from different books and others

http://www.fosiul.com/index.php/2009/11/apache-performace-tunning/

if it does help you to understand how minspare server and max spare server control your apache process
0
 
CahitEyAuthor Commented:
For example here is the most crowded time of web sites and top result as given below one hour ago my server down one time today :D
but i think there could be faster and lighter way then apache
i have seen this benchmarking on litespeed site :
http://www.litespeedtech.com/web-server-performance-comparison-litespeed-2.1-vs.html
and i got really  excitement for the results
[root@lin ~]# top
top - 23:31:05 up  1:48,  6 users,  load average: 2.32, 2.94, 3.31
Tasks: 204 total,   4 running, 200 sleeping,   0 stopped,   0 zombie
Cpu(s): 57.9%us,  7.8%sy,  0.0%ni, 33.9%id,  0.0%wa,  0.1%hi,  0.3%si,  0.0%st
Mem:   8092384k total,  2828476k used,  5263908k free,   179312k buffers
Swap: 19631420k total,        0k used, 19631420k free,  1242520k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3447 mysql     20   0  407m  82m 6120 S 100.3  1.0  78:24.05 mysqld
 9542 apache    20   0  333m  48m 4760 S 22.6  0.6   0:06.10 httpd
 8461 apache    20   0  361m  76m 4968 S 14.6  1.0   0:15.13 httpd
10297 apache    20   0  329m  45m 3916 S 14.0  0.6   0:00.42 httpd
 8993 apache    20   0  333m  48m 4756 S 13.6  0.6   0:08.30 httpd
 7235 apache    20   0  336m  52m 4824 S 13.0  0.7   0:23.91 httpd
 6234 apache    20   0  334m  49m 4800 S 12.3  0.6   0:25.58 httpd
 9011 apache    20   0  333m  48m 4788 S 11.0  0.6   0:10.93 httpd
 9428 apache    20   0  332m  47m 4748 S  9.6  0.6   0:05.72 httpd
 9732 apache    20   0  332m  47m 4752 S  8.0  0.6   0:04.16 httpd
 8126 apache    20   0  334m  49m 4936 R  7.3  0.6   0:19.15 httpd
 7243 apache    20   0  346m  60m 5100 S  6.0  0.8   0:26.71 httpd
 7471 apache    20   0  337m  52m 4804 S  5.6  0.7   0:25.39 httpd
 7951 apache    20   0  337m  52m 4980 S  5.3  0.7   0:21.05 httpd
 9049 apache    20   0  333m  49m 4952 S  5.3  0.6   0:11.42 httpd
 9144 apache    20   0  334m  49m 4784 S  5.3  0.6   0:11.06 httpd
 7651 apache    20   0  336m  51m 4792 S  4.3  0.6   0:20.65 httpd
 9751 apache    20   0  332m  47m 4764 S  4.0  0.6   0:04.81 httpd
 9009 apache    20   0  335m  50m 4784 S  1.0  0.6   0:11.69 httpd
 2561 apache    20   0  334m  50m 4808 S  0.3  0.6   0:54.48 httpd
 5275 root      20   0 98.4m 3848 2892 R  0.3  0.0   0:00.86 sshd
 5326 root      20   0 12880 1316  860 R  0.3  0.0   0:13.78 top
 9188 apache    20   0  332m  47m 4772 S  0.3  0.6   0:06.71 httpd
 9189 apache    20   0  333m  48m 4760 S  0.3  0.6   0:09.59 httpd
10130 apache    20   0  333m  48m 4748 S  0.3  0.6   0:03.17 httpd
    1 root      20   0 10356  772  640 S  0.0  0.0   0:00.46 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/1
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1
    9 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/2
   10 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2
   12 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/3
   13 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3

Open in new window

0
 
fosiul01Commented:
really dont have any idea anything about apache

there are some other people use which
http://www.acme.com/software/thttpd/

but never tryed that

do you know exactly why your apache stoped ??

did you turn on  debug log to higher level to see what its atually stoped ?
0
 
CahitEyAuthor Commented:
I want a faster solution or a faster http server , because i see that some servers giving higher quality then mine with huger web sites . and i am trying to achieve that how could this be possible , what could i do more , today i have installed lighthttpd , but on it as i see i need to put lua files on each host :D then i remove back and returned to apache
0
 
fosiul01Commented:
what you meant by faster then apache ??

example :

how quickly user is seeing your website ??

the top output you attached before

Mem:   8092384k total,  2828476k used,  5263908k free,   179312k buffers

is this output of your pick time ???

when you reach your pick time , what the memory status of your server ??
0
 
fosiul01Commented:
also
its not apache!! its mysql is using 100% of your server

 3447 mysql     20   0  407m  82m 6120 S 100.3  1.0  78:24.05 mysqld


so you should investigate  mysql first

0
 
CahitEyAuthor Commented:
Yes now this question goes to mysql server on EE
Thank you so much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now