JFinal 做过压力测试吗

一千年前的人 发布于 2012/07/25 17:36
阅读 7K+
收藏 11

@JFinal 你好,想跟你请教个问题:

JFinal 做过压力测试吗, 包括长时间运行下 CPU、内存 资源的使用状况呢?

加载中
1
一千年前的人
一千年前的人

引用来自“JFinal”的答案

做过压力测试,我女朋友现在要我出去散步,晚些再回答你 
根据   @mark35 的建议, 明天早上再回答吧   ...... 
mark35
mark35
也许测试结果不理想,还要继续重复呢~~~
1
JFinal
JFinal

以下是 JFinal 极速开发群里面的朋友给出的简单测试:

  •  100 个线程并发,20000次请求

ab -n 20000 -c 100 http://202.114.79.246:8280/portal/login?username=zhangsan\&password=123
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 202.114.79.246 (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
Completed 18000 requests
Finished 20000 requests

Server Software:        Apache-Coyote/1.1
Server Hostname:        202.114.79.246
Server Port:            8280

Document Path:          /portal/login?username=zhangsan&password=123
Document Length:        2412 bytes

Concurrency Level:      100
Time taken for tests:   2.754403 seconds
Complete requests:      20000
Failed requests:        0
Write errors:           0
Total transferred:      53053260 bytes
HTML transferred:       48252060 bytes
Requests per second:    7261.10 [#/sec] (mean)
Time per request:       13.772 [ms] (mean)
Time per request:       0.138 [ms] (mean, across all concurrent requests)
Transfer rate:          18809.52 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   2.0      2       9
Processing:     2   11   3.4     11      51
Waiting:        0    5   3.6      5      38
Total:          2   13   3.8     13      53

Percentage of the requests served within a certain time (ms)
  50%     13
  66%     14
  75%     15
  80%     15
  90%     17
  95%     18
  98%     19
  99%     29
 100%     53 (longest request) 

  •  100 个线程并发,30000 次请求

ab -n 30000 -c 100 http://202.114.79.246:8280/portal/login?username=zhangsan\&password=123
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 202.114.79.246 (be patient)
Completed 3000 requests
Completed 6000 requests
Completed 9000 requests
Completed 12000 requests
Completed 15000 requests
Completed 18000 requests
Completed 21000 requests
Completed 24000 requests
Completed 27000 requests
Finished 30000 requests

Server Software:        Apache-Coyote/1.1
Server Hostname:        202.114.79.246
Server Port:            8280

Document Path:          /portal/login?username=zhangsan&password=123
Document Length:        2412 bytes

Concurrency Level:      100
Time taken for tests:   4.336593 seconds
Complete requests:      30000
Failed requests:        0
Write errors:           0
Total transferred:      79581216 bytes
HTML transferred:       72379296 bytes
Requests per second:    6917.87 [#/sec] (mean)
Time per request:       14.455 [ms] (mean)
Time per request:       0.145 [ms] (mean, across all concurrent requests)
Transfer rate:          17920.98 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2   1.8      2      10
Processing:     1   11   3.3     12      56
Waiting:        0    5   3.4      5      51
Total:          2   13   3.6     14      57

Percentage of the requests served within a certain time (ms)
  50%     14
  66%     15
  75%     15
  80%     16
  90%     17
  95%     18
  98%     19
  99%     28
 100%     57 (longest request) 

  •  200 个线程并发,10 万次请求

ab -n 100000 -c 200 http://202.114.79.246:8280/portal/login?username=wangkai\&password=123
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 202.114.79.246 (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests

Server Software:        Apache-Coyote/1.1
Server Hostname:        202.114.79.246
Server Port:            8280

Document Path:          /portal/login?username=wangkai&password=123
Document Length:        2411 bytes

Concurrency Level:      200
Time taken for tests:   15.194965 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Total transferred:      265219295 bytes
HTML transferred:       241208495 bytes
Requests per second:    6581.13 [#/sec] (mean)
Time per request:       30.390 [ms] (mean)
Time per request:       0.152 [ms] (mean, across all concurrent requests)
Transfer rate:          17045.32 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   10 147.1      3    3019
Processing:     1   18   7.0     18     228
Waiting:        0    8   6.7      8     220
Total:          4   29 147.4     21    3047

Percentage of the requests served within a certain time (ms)
  50%     21
  66%     24
  75%     26
  80%     27
  90%     30
  95%     33
  98%     37
  99%     43
 100%   3047 (longest request) 

 

JFinal
JFinal
回复 @一千年前的人 : 暂时没有。由一 JFinal 是对 servlet 的极薄封装,所以性能理论上来说接近纯 Servlet :)
一千年前的人
一千年前的人
谢谢。 有没有 long run 的报告呢。。
0
JFinal
JFinal
做过压力测试,我女朋友现在要我出去散步,晚些再回答你 
0
mark35
mark35
是先拿女友做压力测试去了吧
罗斌杰
罗斌杰
先拿女友去解压,然后自己再压
紫电清霜
紫电清霜
哈哈~
0
w
wallace_lao

引用来自“JFinal”的答案

以下是 JFinal 极速开发群里面的朋友给出的简单测试:

  •  100 个线程并发,20000次请求

ab -n 20000 -c 100 http://202.114.79.246:8280/portal/login?username=zhangsan\&password=123
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 202.114.79.246 (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
Completed 18000 requests
Finished 20000 requests

Server Software:        Apache-Coyote/1.1
Server Hostname:        202.114.79.246
Server Port:            8280

Document Path:          /portal/login?username=zhangsan&password=123
Document Length:        2412 bytes

Concurrency Level:      100
Time taken for tests:   2.754403 seconds
Complete requests:      20000
Failed requests:        0
Write errors:           0
Total transferred:      53053260 bytes
HTML transferred:       48252060 bytes
Requests per second:    7261.10 [#/sec] (mean)
Time per request:       13.772 [ms] (mean)
Time per request:       0.138 [ms] (mean, across all concurrent requests)
Transfer rate:          18809.52 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   2.0      2       9
Processing:     2   11   3.4     11      51
Waiting:        0    5   3.6      5      38
Total:          2   13   3.8     13      53

Percentage of the requests served within a certain time (ms)
  50%     13
  66%     14
  75%     15
  80%     15
  90%     17
  95%     18
  98%     19
  99%     29
 100%     53 (longest request) 

  •  100 个线程并发,30000 次请求

ab -n 30000 -c 100 http://202.114.79.246:8280/portal/login?username=zhangsan\&password=123
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 202.114.79.246 (be patient)
Completed 3000 requests
Completed 6000 requests
Completed 9000 requests
Completed 12000 requests
Completed 15000 requests
Completed 18000 requests
Completed 21000 requests
Completed 24000 requests
Completed 27000 requests
Finished 30000 requests

Server Software:        Apache-Coyote/1.1
Server Hostname:        202.114.79.246
Server Port:            8280

Document Path:          /portal/login?username=zhangsan&password=123
Document Length:        2412 bytes

Concurrency Level:      100
Time taken for tests:   4.336593 seconds
Complete requests:      30000
Failed requests:        0
Write errors:           0
Total transferred:      79581216 bytes
HTML transferred:       72379296 bytes
Requests per second:    6917.87 [#/sec] (mean)
Time per request:       14.455 [ms] (mean)
Time per request:       0.145 [ms] (mean, across all concurrent requests)
Transfer rate:          17920.98 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2   1.8      2      10
Processing:     1   11   3.3     12      56
Waiting:        0    5   3.4      5      51
Total:          2   13   3.6     14      57

Percentage of the requests served within a certain time (ms)
  50%     14
  66%     15
  75%     15
  80%     16
  90%     17
  95%     18
  98%     19
  99%     28
 100%     57 (longest request) 

  •  200 个线程并发,10 万次请求

ab -n 100000 -c 200 http://202.114.79.246:8280/portal/login?username=wangkai\&password=123
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 202.114.79.246 (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests

Server Software:        Apache-Coyote/1.1
Server Hostname:        202.114.79.246
Server Port:            8280

Document Path:          /portal/login?username=wangkai&password=123
Document Length:        2411 bytes

Concurrency Level:      200
Time taken for tests:   15.194965 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Total transferred:      265219295 bytes
HTML transferred:       241208495 bytes
Requests per second:    6581.13 [#/sec] (mean)
Time per request:       30.390 [ms] (mean)
Time per request:       0.152 [ms] (mean, across all concurrent requests)
Transfer rate:          17045.32 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   10 147.1      3    3019
Processing:     1   18   7.0     18     228
Waiting:        0    8   6.7      8     220
Total:          4   29 147.4     21    3047

Percentage of the requests served within a certain time (ms)
  50%     21
  66%     24
  75%     26
  80%     27
  90%     30
  95%     33
  98%     37
  99%     43
 100%   3047 (longest request) 

 

请问这是用什么工具测出来的?
JFinal
JFinal
用 ab 测的
0
一千年前的人
一千年前的人

引用来自“nGrinderChina”的答案

3分钟学会世界上最简单但潜力无限的压力工具-nGrinder: http://www.nhnopensource.org/ngrinder/
不错, 回头尝试一下。 load runner 的先入为主的使用观念和ngrinder一致吗?
0
maiyang
maiyang
apache bxxxx,简称ab
0
华兹格
华兹格
顶起哈哈~~
返回顶部
顶部