当前位置:网站首页>Apache ab 压力测试
Apache ab 压力测试
2022-07-07 02:04:00 【茫茫人海一粒沙】
简介
压测工具有很多,如:LoadRunner、JMeter、ab等等,LoadRunner和JMeter使用相对复杂,ab比较简单
Apache ab 下载与压力测试
下载
Apache VS16 binaries and modules download

![]()
下载后解压

然后用cmd进入apache24\bin目录,运行ab. (注意不能直接双击)

然后运行压力测试, 比如
ab -n 5000 -c 100 localhost:8080/sync_result
5000个请求,每次并发100个请求。 localhost:8080/sync_result这个是URL, 默认超时时间是30s.
执行结果如下
Concurrency Level: 100
Time taken for tests: 26.970 seconds
Complete requests: 5000
Failed requests: 4549
(Connect: 0, Receive: 0, Length: 4549, Exceptions: 0)
Total transferred: 909599 bytes
HTML transferred: 244599 bytes
Requests per second: 185.39 [#/sec] (mean)
Time per request: 539.391 [ms] (mean)
Time per request: 5.394 [ms] (mean, across all concurrent requests)
Transfer rate: 32.94 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 1
Processing: 500 517 56.2 509 1326
Waiting: 500 516 54.4 508 997
Total: 500 517 56.2 509 1326
Percentage of the requests served within a certain time (ms)
50% 509
66% 513
75% 515
80% 516
90% 518
95% 521
98% 628
99% 908
100% 1326 (longest request)如果你要访问时https的url. 那么用下面的命令
abs -n 5000 -c 100 https://localhost:8080/sync_result
边栏推荐
- Ideas of high concurrency and high traffic seckill scheme
- 缓存在高并发场景下的常见问题
- 基于FPGA的VGA协议实现
- Experience of Niuke SQL
- Crudini profile editing tool
- "Parse" focalloss to solve the problem of data imbalance
- 面试中有哪些经典的数据库问题?
- Open the blue screen after VMware installation
- k8s运行oracle
- 360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
猜你喜欢

Markdown 并排显示图片

Markdown displays pictures side by side

Common problems of caching in high concurrency scenarios

JVM monitoring and diagnostic tools - command line

程序员的日常 | 每日趣闻

Ctfshow-- common posture

屏幕程序用串口无法调试情况

博士申请 | 上海交通大学自然科学研究院洪亮教授招收深度学习方向博士生

Bypass open_ basedir

JVM command - jmap: export memory image file & memory usage
随机推荐
@Detailed differences between pathvariable and @requestparam
Bypass open_ basedir
QT console output in GUI applications- Console output in a Qt GUI app?
线性代数(一)
3531. Huffman tree
Check point: the core element for enterprises to deploy zero trust network (ztna)
Software testing knowledge reserve: how much do you know about the basic knowledge of "login security"?
Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!
Handling hardfault in RT thread
骑士战胜魔王(背包&dp)
Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
tkinter窗口选择pcd文件并显示点云(open3d)
Open the blue screen after VMware installation
Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
Crudini profile editing tool
Change the original style of UI components
uniapp开发小程序如何使用微信云托管或云函数进行云开发
A very good JVM interview question article (74 questions and answers)