testmouse 发表于 2009-8-25 00:12:10

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.AbstractDelegateHttpsURLConnection.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:55

因为公司电脑没有设置代理,只是设置了自动配置脚本,所以尝试过用命令行代理模式启动,但是还是不行。。。

gjay1688 发表于 2009-8-25 09:46:55

貌似和我遇到一样的问题啊,不过我是remote的时候出现的,本机自己跑是没有问题的,正在研究中,还没发现解决办法...:Q

gjay1688 发表于 2009-8-25 11:19:32

你用netstat查看,是不是主机IP+端口的状态一直是TIME_WAIT?

jiangxinsx 发表于 2010-7-23 20:16:19

我也遇到同样的问题,状态一直是time_wait

jiangxinsx 发表于 2010-7-23 20:19:23

请问楼上的有什么解决办法没?急等。。。
页: [1]
查看完整版本: jmeter: Non Http response code error??