Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 使用http请求运行采样器时出错-Jmeter_Apache_Http_Jmeter - Fatal编程技术网

Apache 使用http请求运行采样器时出错-Jmeter

Apache 使用http请求运行采样器时出错-Jmeter,apache,http,jmeter,Apache,Http,Jmeter,我正在使用以下设置运行采样器(HTTP请求): Server Name or IP: localhost:8044/ca Path: / 它失败并抛出错误消息: 请向我推荐解决方案。您不应该在“服务器名称”输入字段中设置路径,您有两个选项: 将服务器名称、端口和路径拆分为3个不同的输入: 将整个URL放入“路径”输入 还有几点建议: 可能更快更容易 不建议在同一台机器上测试Load Generator(JMeter)和应用程序,我建议在另一台主机上运行JMeter,这样您就可以避免在使

我正在使用以下设置运行采样器(HTTP请求):

Server Name or IP:  localhost:8044/ca
Path: /
它失败并抛出错误消息:


请向我推荐解决方案。

您不应该在“服务器名称”输入字段中设置路径,您有两个选项:

  • 将服务器名称、端口和路径拆分为3个不同的输入:

  • 将整个URL放入“路径”输入

  • 还有几点建议:

    • 可能更快更容易
    • 不建议在同一台机器上测试Load Generator(JMeter)和应用程序,我建议在另一台主机上运行JMeter,这样您就可以避免在使用机器资源方面的相互干扰(在执行高负载时,JMeter非常占用资源)
    Thread Name: LoadTest 1-1
    Sample Start: 2017-02-01 16:50:41 GMT+05:30
    Load time: 0
    Connect Time: 0
    Latency: 0
    Size in bytes: 1077
    Headers size in bytes: 0
    Body size in bytes: 1077
    Sample Count: 1
    Error Count: 1
    Response code: Non HTTP response code: java.net.URISyntaxException
    Response message: Non HTTP response message: Expected closing bracket for IPv6 address at index 22: http://[localhost:8044/ca]/