0
点赞
收藏
分享

微信扫一扫

Jmeter第Jmeter4.0分布式压测准备工作

静鸡鸡的JC 2022-04-02 阅读 52
压力测试

Jmeter分布式文档地址:Apache JMeter - Apache JMeter Distributed Testing Step-by-step

    简介:讲解Linux服务器上jmeter进行分布式压测的相关准备工作

        1、压测注意事项
            the firewalls on the systems are turned off or correct ports are opened.
            系统上的防火墙被关闭或正确的端口被打开。

            all the clients are on the same subnet.
            所有的客户端都在同一个子网上。

            the server is in the same subnet, if 192.x.x.x or 10.x.x.x IP addresses are used. If the server doesn't use 192.xx or 10.xx IP address, there shouldn't be any problems.
            如果使用192.x.x.x或10.x.x.x IP地址,则服务器位于同一子网中。 如果服务器不使用192.xx或10.xx IP地址,则不应该有任何问题。

            Make sure JMeter can access the server.
            确保JMeter可以访问服务器。

            Make sure you use the same version of JMeter and Java on all the systems. Mixing versions will not work correctly.
            确保在所有系统上使用相同版本的JMeter和Java。 混合版本将无法正常工作。

            You have setup SSL for RMI or disabled it.
            您已为RMI设置SSL或将其禁用。

            官网地址 http://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.html

            压测注意事项:一定要用内网IP,不用用公网IP,用ping去检查

        2、专业名字
            master:司令
            slave:奴隶
            target:目标


            地址:http://jmeter.apache.org/images/screenshots/distributed-names.svg
            地址:http://jmeter.apache.org/images/screenshots/distributed-jmeter.svg

    远程拷贝(内网地址):
        scp -r /usr/local/software/jdk-8u141-linux-x64.tar.gz root@172.18.230.233:/usr/local/software
        scp -r /usr/local/software/jmeter/apache-jmeter-4.0.tgz root@172.18.230.233:/usr/local/software/jmeter

    启动 
        ./jmeter-server 或者    nohup ./jmeter-server &
    

    检查启动是否成功
        ps -ef|grep jmeter-server
        ps aux|grep jmeter-server

        

举报

相关推荐

0 条评论