You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Manish Sapariya <ms...@gmail.com> on 2013/05/21 13:53:01 UTC

Unknown host exception intermittently when running with more threads

Hi,
I keep seeing this exception interimttently when I run with close to 50
threads. I am running distributed test and none of my other nodes are
running into this issue. However when I run the test individually its
running without any problem.

java.net.UnknownHostException: beta.atlantic.gslab.com
  at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
  at java.net.InetAddress.getAllByName(InetAddress.java:1084)
  at java.net.InetAddress.getAllByName(InetAddress.java:1020)
  at
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
  at
org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
  at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
  at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
  at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
  at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
  at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
  at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
  at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:286)
  at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
  at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
  at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
  at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
  at java.lang.Thread.run(Thread.java:662)


The OS is CentOS 5.6.
jMeter 2.9

I also tried having an /etc/hosts entry, but it do not help.
Any pointers will be of great help.
Thanks and Regards,
Manish

Re: Unknown host exception intermittently when running with more threads

Posted by sebb <se...@gmail.com>.
On 21 May 2013 12:53, Manish Sapariya <ms...@gmail.com> wrote:
> Hi,
> I keep seeing this exception interimttently when I run with close to 50
> threads. I am running distributed test and none of my other nodes are
> running into this issue. However when I run the test individually its
> running without any problem.
>
> java.net.UnknownHostException: beta.atlantic.gslab.com
>   at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
>   at java.net.InetAddress.getAllByName(InetAddress.java:1084)
>   at java.net.InetAddress.getAllByName(InetAddress.java:1020)
>   at
> org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
>   at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
>   at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
>   at
> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
>   at
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
>   at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
>   at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
>   at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
>   at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:286)
>   at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
>   at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
>   at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
>   at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
>   at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
>   at java.lang.Thread.run(Thread.java:662)
>
>
> The OS is CentOS 5.6.
> jMeter 2.9
>
> I also tried having an /etc/hosts entry, but it do not help.
> Any pointers will be of great help.

This is clearly an OS or JVM problem - nothing really to do with
JMeter, except of course it is triggering the issue.
Maybe the OS is running low on resources, and this is causing the name
resolution to fail.
Try searching for the error message and see if anyone else has got the issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org