Sébastien Piller wrote:
Hello guys!
I'm having a little trouble with JMeter. I have a test that make some
HTTP GET on an url that serve an xml document (generated from a database).
But when running this test, I received this exception. And as it speak
about JMeter on the stack trace, I'm quite sure that the problem doesn't
come from my web app :)
Here is the ST:
java.net.ConnectException: Connection refused: 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:440)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:863)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:849)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:300)
at java.lang.Thread.run(Unknown Source)
Anybody have seen this before? Could you tell me more about this?
PS: the test was run in localhost, with 10 threads of 20 iterations, in
the JMeter's GUI.
Thank you :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Sébastien,
This stack trace tells us that when trying to run one of your
HTTPSamplers, it was not possible for JMeter to open a TCP connection to
the specified host/port.
Are all of your samples failing, or is it just a few?
If it's all of them, check that you've given JMeter the right hostname,
and that DNS is working, etc...
If it's just a few, check that those few samplers have the right details
set up (host/port/protocol).
Also, it'd be worth checking that you haven't told JMeter to use HTTPS
when it should use HTTP (or vice versa).
When you say "the test was run in localhost", do you mean that your web
server under test is on the same machine as JMeter?
# r
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
[EMAIL PROTECTED]
www.groupbc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]