51Testing软件测试论坛

标题: jmeter: Non Http response code error?? [打印本页]

作者: testmouse    时间: 2009-8-25 00:12
标题: jmeter: Non Http response code error??
jmeter脚本在自己电脑上可以运行的,放在公司电脑上就出错了,跑不起来了。
自家的电脑是没有代理的。公司的电脑上在局域网设置里使用了自动配置脚本

错误信息是:
Response code:Non HTTP response code: java.net.ConnectException
Response message:Non HTTP response message: Connection timed out: connect

抛得异常是:
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDeleg ... on.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:490)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
at java.lang.Thread.run(Unknown Source)

怎么办啊,请高手指教
作者: testmouse    时间: 2009-8-25 00:14
因为公司电脑没有设置代理,只是设置了自动配置脚本,所以尝试过用命令行代理模式启动,但是还是不行。。。
作者: gjay1688    时间: 2009-8-25 09:46
貌似和我遇到一样的问题啊,不过我是remote的时候出现的,本机自己跑是没有问题的,正在研究中,还没发现解决办法...
作者: gjay1688    时间: 2009-8-25 11:19
你用netstat查看,是不是主机IP+端口的状态一直是TIME_WAIT?
作者: jiangxinsx    时间: 2010-7-23 20:16
我也遇到同样的问题,状态一直是time_wait
作者: jiangxinsx    时间: 2010-7-23 20:19
请问楼上的有什么解决办法没?急等。。。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2