zoukankan      html  css  js  c++  java
  • jenkin系列_调度jmeter实现分布式测试

        假设现在有 192.168.1.100(jmeter 控制器 C )、192.168.1.101(jmeter负载机 B)两台机器进行分布式测试,各个步骤如下

    1. C 和B 安装jmeter,并运行bin目录下的jmeter-server.sh

    2. project/src/test/jmeter/ 下放jmeter.properties,并设置多机负载

    #---------------------------------------------------------------------------
    # Remote hosts and RMI configuration
    #---------------------------------------------------------------------------

    # Remote Hosts - comma delimited
    remote_hosts=127.0.0.1:1099,192.168.1.101:1099
    #remote_hosts=localhost:1099,localhost:2010

    3. 配置项目的pom.xml,在configuration中增加两个配置,如下

    <plugins>
       ....
                    <configuration>             
                        <remoteConfig>
                            <startServersBeforeTests>true</startServersBeforeTests>
                            <stopServersAfterTests>false</stopServersAfterTests>
                        </remoteConfig>
                    </configuration>
            
      ....

    </plugins>

          4. 确保C 和B两台计算机时间同步

          5. 执行构建

  • 相关阅读:
    MYSQL: 什么是MYSQLD Service
    100 logging模块
    099 hashlib和hmac模块
    098 json和pickle模块
    097 sys模块
    096 os模块
    095 random模块
    094 datetime模块
    093 time模块
    092 模块基础实战之ATM和购物车系统分文件处理
  • 原文地址:https://www.cnblogs.com/onmyway20xx/p/4118685.html
Copyright © 2011-2022 走看看