1 Star 0 Fork 9

一心 / HServer-GateWay

forked from HServer / HServer-GateWay 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.87 KB
一键复制 编辑 原始数据 按行查看 历史
黑小马 提交于 2020-06-27 19:23 . 更新配置

HServer-GateWay

flat

如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢!

介绍

基于Netty的高性能网关

代理性能测试,Win10,8h 8W QPS
代理性能测试,Linux,8h 18W QPS

代理逻辑。80端口(网关)->9999(后台服务HServer可达23QPS) /test

[root@localhost ~]# ab -c100 -n100000 -k http://127.0.0.1/test
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (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
Completed 100000 requests
Finished 100000 requests


Server Software:        2.9.21
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /test
Document Length:        33 bytes

Concurrency Level:      100
Time taken for tests:   0.552 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      17600000 bytes
HTML transferred:       3300000 bytes
Requests per second:    181206.36 [#/sec] (mean)
Time per request:       0.552 [ms] (mean)
Time per request:       0.006 [ms] (mean, across all concurrent requests)
Transfer rate:          31144.84 [Kbytes/sec] received

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

Percentage of the requests served within a certain time (ms)
  50%      0
  66%      0
  75%      1
  80%      1
  90%      1
  95%      1
  98%      1
  99%      2
 100%     38 (longest request)

MAven打包栈溢出

-Xss4096k

效果图

Java
1
https://gitee.com/caiyuanlin_13/HServer-GateWay.git
git@gitee.com:caiyuanlin_13/HServer-GateWay.git
caiyuanlin_13
HServer-GateWay
HServer-GateWay
master

搜索帮助