I am uging lift develop a  projectI, I want to deploy my project using
jetty instead of tomcat, so i test jetty 6.1.22.

my notebook: lenovo Y330(cpu: Core2 Duo p7350 2GHz, mem: 3G)
my os: debian lenny for amd64
jdk: Java(TM) SE Runtime Environment (build 1.6.0_17-b04)

step 1: download jetty 6.1.22 from  
http://dist.codehaus.org/jetty/jetty-6.1.22/jetty-6.1.22.zip

step 2: unzip jetty 6.1.22 in my home dir.

setp3: set environment var
    export JAVA_OPTS="-Drun.mode=production -server -Xmx2048"

setp3: run jetty (cd jetty-6.1.22/ ; java -jar start.jar  )

test 1: start -----------------------------------------------------

test the "Hello World Servlet"  example  of jetty-6.1.22,
the example url: http://localhost:8080/hello/

mo...@den:~/jetty-6.1.22$ ab -n 10000 -c 300 http://localhost:8080/hello/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        Jetty(6.1.22)
Server Hostname:        localhost
Server Port:            8080

Document Path:          /hello/
Document Length:        39 bytes

Concurrency Level:      300
Time taken for tests:   10.344 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      1060212 bytes
HTML transferred:       390078 bytes
Requests per second:    966.72 [#/sec] (mean)
Time per request:       310.329 [ms] (mean)
Time per request:       1.034 [ms] (mean, across all concurrent
requests)
Transfer rate:          100.09 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   12 152.7      2    3000
Processing:   200  293  53.0    266     566
Waiting:        1   93  53.6     65     364
Total:        206  305 159.1    271    3251

Percentage of the requests served within a certain time (ms)
  50%    271
  66%    338
  75%    345
  80%    350
  90%    359
  95%    366
  98%    378
  99%    434
 100%   3251 (longest request)

===the test1 result is good!  =====
Failed requests:        0
Requests per second:    966.72 [#/sec] (mean)

test 1: end ################

test 2: start -----------------------------------------------------
test the "Request Dump JSP" exmaple of jetty-6.1.22,
the example url: http://localhost:8080/snoop.jsp

mo...@den:~/jetty-6.1.22$ ab -n 50 -c 3 http://localhost:8080/snoop.jsp
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done


Server Software:        Jetty(6.1.22)
Server Hostname:        localhost
Server Port:            8080

Document Path:          /snoop.jsp
Document Length:        2249 bytes

Concurrency Level:      3
Time taken for tests:   0.044 seconds
Complete requests:      50
Failed requests:        23
   (Connect: 0, Receive: 0, Length: 23, Exceptions: 0)
Write errors:           0
Total transferred:      124547 bytes
HTML transferred:       114676 bytes
Requests per second:    1132.76 [#/sec] (mean)
Time per request:       2.648 [ms] (mean)
Time per request:       0.883 [ms] (mean, across all concurrent
requests)
Transfer rate:          2755.50 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     1    3   2.9      1      12
Waiting:        1    2   2.9      1      12
Total:          1    3   2.9      1      12

Percentage of the requests served within a certain time (ms)
  50%      1
  66%      3
  75%      3
  80%      3
  90%      9
  95%     10
  98%     12
  99%     12
 100%     12 (longest request)

===the test2  result is bad!  =====
Failed requests:        23
   (Connect: 0, Receive: 0, Length: 23, Exceptions: 0)
Requests per second:    1132.76 [#/sec] (mean)

why the "Request Dump JSP" exmaple testing result is failed, so less
Number of requests(50) and less concurrency (3),

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=.


Reply via email to