You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bruno Charloup <bc...@jouve.fr> on 2007/11/16 10:23:10 UTC
Need help to explain JMeter error
Hi all,
I'm a simple user of Jmeter, not a Java developer.
Does anybody could help me to understand the following error message :
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.Socket.connect(Unknown Source)
at java.net.Socket.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.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:
457)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.downloadPageResource
s(HTTPSamplerBase.java:1047)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTT
PSamplerBase.java:1257)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:
540)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
se.java:889)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
se.java:875)
at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:298)
at java.lang.Thread.run(Unknown Source)
This message arrives 5 minutes after the beginning of a test with 100
virtual users.
JMeter 2.3 is launched on windows, with xms=xmx=1024 (I have 2 GB memory on
my PC).
I have tried to dispatch this load on 3 PC (1 master and 2 slaves) and I
have the same behaviour on the master.
The stressed application is requested through internet (not on the same
LAN).
Thanks in advance for any explanation and/or advice on Jmeter settings.
--
Bruno
Re: Need help to explain JMeter error
Posted by Ronan Klyne <ro...@groupbc.com>.
Bruno Charloup wrote:
> 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.Socket.connect(Unknown Source)
>
> at java.net.Socket.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.http.HttpClient.<init>(Unknown Source)
>
> at sun.net.www.http.HttpClient.New(Unknown Source)
>
> at sun.net.www.http.HttpClient.New(Unknown Source)
>
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
>
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
>
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
>
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:
> 457)
>
This is a TCP connection timeout when JMeter is trying to get a web page.
>
> This message arrives 5 minutes after the beginning of a test with 100
> virtual users.
That'll be the duration of the timeout.
> JMeter 2.3 is launched on windows, with xms=xmx=1024 (I have 2 GB memory on
> my PC).
>
>
>
> I have tried to dispatch this load on 3 PC (1 master and 2 slaves) and I
> have the same behaviour on the master.
>
I don't think this is due to load on the test running machine. It seems
more likely that this is a fault of your connection or server. Make sure
you're trying to connect to the right server, and that the server is on,
not firewalled, etc.
>
> The stressed application is requested through internet (not on the same
> LAN).
I'd advise against this unless you've got mighty bandwidth, but your
mentioning this suggests you've thought about it...
# r
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 (0)870 163 2555
ronan.klyne@groupbc.com
www.groupbc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org