Unable to do recording Jmeter

Viewed 21

Im new to Jmeter . While doing the recording Im getting the below error . please help me

Error:

java.net.UnknownHostException: www.gstatic.com

at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:939) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:650) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1301) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:251)

1 Answers

It looks like JMeter cannot access the Internet, most probably you're behind a corporate proxy server

If you want to record website(s) (or other resources) which are in the Internet - you need to make JMeter aware of the upstream proxy.

Normally your Internet connection looks like:

browser -> corporate proxy -> Internet

when you're recording with JMeter you substitute your corporate proxy with JMeter hence Internet access won't be available anymore:

browser -> JMeter proxy -> you can only access local resources

so you need to make it like:

browser -> JMeter proxy -> corporate proxy -> Internet

See Using JMeter behind a proxy user manual chapter for more information.


Additionally I don't think you should be recording requests to www.gstatic.com as it's Google's CDN so I believe you neither should record the calls to that site nor replay them as this is something absolutely beyond your control, moreover your IP address can get banned (unless you're a Google employee who has the task to load test the CDN). See Web Testing with JMeter: How To Properly Handle Embedded Resources in HTML Responses article for more information if needed.

Related