当前位置:网站首页>jmeter distributed stress test
jmeter distributed stress test
2022-08-04 00:33:00 【Jun Xian】
1.What is distributed stress testing?
by a controller(Master )发出命令,Control multiple presses(Slaves)执行操作.
2、为什么要做分布式压测?
- 一台压力机的 Jmeter 默认最大支持 1000 左右的并发用户数(线程数),再大的话,容易造成卡顿、无响应等情况,这是受限于Jmeter 其本身的机制和硬件配置(内存、CPU等)
- 由于 Jmeter 是 Java 应用,对 CPU 和内存的消耗较大,在需要模拟大量并发用户数时,单机很容易出现 JAVA内存溢出的错误,导致测试脚本本身就有瓶颈
3、实操
1、Preconditions for control machines and presses:
- jmeter 版本要一致
- jdk 主版本要一致(1.7、1.8…)
- jmeter 脚本中,csv 文件要一致
- jmeter 的插件要一致
- 同一局域网,防火墙开放端口
2、Press operation steps(以linux系统为例)
1. 编辑jmeter.properties文件
- 修改 server_port 端口默认为1009
# RMI port to be used by the server (must start rmiregistry with same port)
server_port=1234
- 修改 server.rmi.port 端口,和 server_port 保持一致即可, The default is to keep you consistent
# To change the default port (1099) used to access the server:
server.rmi.port=1234
- 设置 server.rmi.ssl.disable,默认 false,Delegate requires authentication set to true,减少不必要的麻烦
# Set this if you don't want to use SSL for RMI
server.rmi.ssl.disable=true
2. 启动 jmeter-server 服务
./jmeter-server -Djava.rmi.server.hostname=压力机ip
3、Control machine operation steps
1. 编辑jmeter.properties文件
- 修改 remote_hosts,Multiple presses are separated by commas,如果控制机也测试则加 127.0.0.1:port ,然后修改
server_port 和 server.rmi.port (和压力机一样步骤)
remote_hosts=192.168.220.129:1234,127.0.0.1:1234
#remote_hosts=localhost:1099,localhost:2010
# RMI port to be used by the server (must start rmiregistry with same port)
server_port=1234
# To change the default port (1099) used to access the server:
server.rmi.port=1234
- 设置 server.rmi.ssl.disable
# Set this if you don't want to use SSL for RMI
server.rmi.ssl.disable=true
- 设置 mode,Used to view the distributed test process,Test results for each press.不启用,在运行过程中,The controller is unable to see the results of the press in real time
mode=Standard
2. The control machine runs distributed tests

jmeter -n -t Distributed test plan.jmx -l C:\Users\one_day_i_will\Desktop\test\Distributed test plan.jtl -e -o C:\Users\one_day_i_will\Desktop\test\report -R 127.0.0.1,192.168.220.129
`
边栏推荐
- Justin Sun was invited to attend the 36氪 Yuan Universe Summit and delivered a keynote speech
- 一文参透分布式存储系统Ceph的架构设计、集群搭建(手把手)
- typescript54 - generic constraints
- typescript50-交叉类型和接口之间的类型说明
- 全面讲解 Handler机制原理解析 (小白必看)
- 做项目一定用得到的NLP资源【分类版】
- C语言实验十四 结构体
- Talking about the future development direction of my country's industrial parks
- 【超详细教程】LVS+KeepAlived高可用部署实战应用
- Salesforce的中国区业务可能出现新变化,传言可能正在关闭
猜你喜欢

轻量级网络整理及其在Yolov5上的实现

分布式事务框架 seata

Spinnaker调用Jenkins API 返回403错误

【超详细】手把手教你搭建MongoDB集群搭建

Web3 security risks daunting?How should we respond?

【杂项】如何将指定字体装入电脑然后能在Office软件里使用该字体?

搭建好pytorch环境后,pip和conda指令不能用

Talking about the future development direction of my country's industrial parks

typescript57-数组泛型接口

C# wpf使用ffmpeg命令行实现录屏
随机推荐
C# WPF设备监控软件(经典)-下篇
轻量级网络整理及其在Yolov5上的实现
Graph-node:创建一个新的subgraph
身为程序员的我们如何卷死别人?破局重生。
typescript54-泛型约束
互斥锁、读写锁、自旋锁,以及原子操作指令xaddl、cmpxchg的使用场景剖析
现货白银需要注意八大事项
LYVE1抗体丨Relia Tech LYVE1抗体解决方案
Eight things to pay attention to in spot silver
pcl点云数据 转化为 Eigen::Map
typescript54 - generic constraints
小米--测试开发
Modulo operation (MOD)
研究生新生培训第四周:MobileNetV1, V2, V3
【杂项】如何将指定字体装入电脑然后能在Office软件里使用该字体?
win10+cuda11.7+pytorch1.12.0 installation
Nanoprobes Mono- Sulfo -NHS-Nanogold的使用和应用
Apple told Qualcomm: I bought a new campus for $445 million and may plan to speed up self-development of baseband chips
取模运算(MOD)
Node.js的基本使用(三)数据库与身份认证