JFinal 做过压力测试吗

发布于 2021-11-29 15:41:35 字数 167 浏览 927 评论 15

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(15

情痴 2021-11-30 04:06:24

顶起哈哈~~

如此安好 2021-11-30 04:06:23

abc

各自安好 2021-11-30 04:06:21

apache bxxxx,简称ab

命硬 2021-11-30 04:06:20

3分钟学会世界上最简单但潜力无限的压力工具-nGrinder: http://www.nhnopensource.org/ngrinder/

顾挽 2021-11-30 04:06:10

用 ab 测的

终遇你 2021-11-30 04:05:59

以下是 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 
gt; 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 
gt; 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 
gt; 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) 

 

    顾忌 2021-11-30 04:05:57

    哈哈~

    爱的故事 2021-11-30 04:05:42

    先拿女友去解压,然后自己再压

    猫烠⑼条掵仅有一顆心 2021-11-30 04:05:02

    是先拿女友做压力测试去了吧

    顾忌 2021-11-30 04:01:13

    做过压力测试,我女朋友现在要我出去散步,晚些再回答你 

    琴流音 2021-11-30 01:54:38

    谢谢。 有没有 long run 的报告呢。。

    奈何桥上唱咆哮 2021-11-30 01:44:22

    回复
    暂时没有。由一 JFinal 是对 servlet 的极薄封装,所以性能理论上来说接近纯 Servlet :)

    输什么也不输骨气 2021-11-29 20:00:50

    以下是 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 
    gt; 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 
    gt; 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 
    gt; 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) 

     

      葬花如无物 2021-11-29 19:49:11

      也许测试结果不理想,还要继续重复呢~~~

      猫烠⑼条掵仅有一顆心 2021-11-29 16:10:55

      做过压力测试,我女朋友现在要我出去散步,晚些再回答你 

      ~没有更多了~
      我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
      原文