联机负载压测

分布式压测(联机负载)

性能测试

1、性能监控图形的设置

2、设置思考时间think time , 请求之间的间隔时间,模拟真实的用户行为

3、并发测试

​ 设置集合点,实现真正意义的并发

4、使用负载测试线程组实现负载测试

分布式压测

角色:

  • 被测服务端: 192.168.30.62
  • 控制机: 192.168.30.36
  • 负载机: 192.168.30.160 192.168.30.113 192.168.30.33 192.168.30.18 192.168.30.10 192.168.30.35 192.168.30.13

配置文件的设置

​ jmeter.properties

1、控制机:

 
  1. # Remote Hosts - comma delimited
  2. # 设置负载机的ip地址和端口号
  3. remote_hosts=192.168.30.160:1099,192.168.30.18:1099,192.168.30.10:1099
  4. #remote_hosts=localhost:1099,localhost:2010

 
  1. # Set this if you don't want to use SSL for RMI
  2. server.rmi.ssl.disable=true

 
  1. # Remote batching support
  2. # Since JMeter 2.9, default is MODE_STRIPPED_BATCH, which returns samples in
  3. # batch mode (every 100 samples or every minute by default)
  4. # Note also that MODE_STRIPPED_BATCH strips response data from SampleResult, so if you need it change to
  5. # another mode
  6. # Batch returns samples in batches
  7. # Statistical returns sample summary statistics
  8. # mode can also be the class name of an implementation of org.apache.jmeter.samplers.SampleSender
  9. mode=Standard

2、负载机

 
  1. # RMI port to be used by the server (must start rmiregistry with same port)
  2. server_port=1099

 
  1. # To use a specific port for the JMeter server engine, define
  2. # the following property before starting the server:
  3. server.rmi.localport=1099

 
  1. # Set this if you don't want to use SSL for RMI
  2. server.rmi.ssl.disable=true

3、负载机启动 jmeter-server.bat

负载机拷贝参数文件到JMeter下的同位置

4、在控制机启动负载测试

命令行启动:

 
  1. jmeter -n -t demo_06_miaosha.jmx -l test_result -e -o test_report

-R 指定负载机, 会覆盖配置文件remotehosts里的负载机

 
  1. jmeter -n -R 192.168.30.10:1099,192.168.30.12:1099 -t demo_06_miaosha.jmx -l test_result -e -o test_report
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值