使用apache-jmeter进行压力测试
The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.
创建线程组
- 添加线程组:
- 到 bin目录下运行jmeterw.cmd启动JMeter
- 在树上选择“测试计划”
- 右键单击“测试计划”并添加一个新的线程组:添加>线程(用户)>
线程组
- 配置线程参数:
配置线程数和循环次数
添加http请求
- 配置请求地址和请求参数
添加测试报告
添加需要的测试报告
运行
- 点击上面的启动按钮
- 或者Ctrl+R
查看报告
官网文档链接
使用apache-jmeter进行压力测试
https://www.wekri.com/stress-testing-with-apache-jmeter/