java.net.UnknownHostException: www.google.co.in - error with JMeter 3 -


i'm using jmeter 3 firefox browser. have changed proxy settings localhost , 8080. i'm trying record. i'm getting below error. please let me know why issue coming. need change settings ?

java.net.unknownhostexception: www.google.co.in @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:184) 

this error indicates browser not able connect internet via jmeter's proxy. happens when you're sitting behind corporate proxy , host doesn't have direct internet access.

try figuring out corporate proxy details , provide them jmeter via command-line arguments:

  • launch jmeter providing several proxy-related command line arguments, wit

    -h, --proxyhost <argument>         set proxy server jmeter use -p, --proxyport <argument>         set proxy server port jmeter use -n, --nonproxyhosts <argument>         set nonproxy host list (e.g. *.apache.org|localhost) -u, --username <argument>         set username proxy server jmeter use -a, --password <argument>         set password proxy server jmeter use 
  • alternatively can configure proxy server details in system.properties file like:

    http.proxyhost=your_corporate_proxy_server http.proxyport=your_corporate_proxy_port https.proxyhost=your_corporate_proxy_server https.proxyport=your_corporate_proxy_port 

    or pass them via -d command line arguments like:

    jmeter -dhttp.proxyhost=your_corporate_server ... 

    you need restart jmeter pick these properties up.

see:


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -