Jmeter: FTP Request Sampler: " java.net.UnknownHostException"

ftp jmeter

303 观看

2回复

1 作者的声誉

I am working on FTP Sampler and connecting with Public FTP Server

"ftp.swfwmd.state.fl.us" for "Get" method.

But JMeter is showing following error in LOG:

Response code: 000 Response message: java.net.UnknownHostException: ftp.swfwmd.state.fl.us

Please help me out in this problem.

作者: surbhi tyagi 的来源 发布者: 2017 年 9 月 15 日

回应 2


0

26998 作者的声誉

The message indicate host is not known from your machine.

So check your DNS or add manually an entry in your DNS.

作者: UBIK LOAD PACK 发布者: 2017 年 9 月 15 日

0

83411 作者的声誉

  1. Try accessing the server using IP address instead of hostname - 204.76.241.31
  2. If point 1 doesn't help most probably you are sitting behind corporate firewall. For HTTP-based samplers you can specify proxy server details by adding the next lines to system.properties file (lives in "bin" folder of your JMeter installation)

    ftp.proxyHost=hostname or IP address of your proxy
    ftp.proxyPort=port of your proxy server
    

    if above doesn't help you can try setting the following properties instead:

    socksProxyHost=hostname or IP address of your proxy
    socksProxyPort=port of your proxy server (normally 1080)
    

    JMeter restart will be required to pick the properties up

References:

作者: Dmitri T 发布者: 2017 年 9 月 18 日
32x32