如何使用代理服务器进行多位置测试?

How to use proxy server for multiple location testing?

有谁知道,如何在jmeter的帮助下使用代理服务器在分布式环境中做多位置测试。

理论上可以,您可以通过命令行参数设置代理主机、端口、用户名和密码

    -H, --proxyHost <argument>
            Set a proxy server for JMeter to use
    -P, --proxyPort <argument>
            Set proxy server port for JMeter to use
    -N, --nonProxyHosts <argument>
            Set nonproxy host list (e.g. *.apache.org|localhost)
    -u, --username <argument>
            Set username for proxy server that JMeter is to use
    -a, --password <argument>
            Set password for proxy server that JMeter is to use

有关完整选项列表,请参阅 How do I run JMeter in non-gui mode? 指南。

然而,在那种情况下,您的加载结果可能会受到代理性能的影响,就像您将对代理进行负载测试,而不是对它背后的应用程序进行负载测试。所以我宁愿选择running JMeter in distributed mode from different physical locations. For instance, Amazon EC2 provides capability to have instances in different geographic regions and micro instances are free