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. 执行构建

  • 相关阅读:
    WCF中NetTCp配置
    生产者消费者模式
    MVC 引擎优化
    Wcf
    MongoDB运用
    Sock基础
    WebService
    线程
    委托
    特性
  • 原文地址:https://www.cnblogs.com/onmyway20xx/p/4118685.html
Copyright © 2011-2022 走看看