You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/10/13 21:54:39 UTC

DO NOT REPLY [Bug 45998] New: Getting the exception java.net.ConnectException: Connection timed out: connect

https://issues.apache.org/bugzilla/show_bug.cgi?id=45998

           Summary: Getting the exception java.net.ConnectException:
                    Connection timed out: connect
           Product: JMeter
           Version: 2.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: nbeyes@gmail.com


Steps two recreate
-----------------------

Idea of the test
-------------------

 To run stress test with 180 users with Ramp-up period of 10 minutes over a 24
hours duration on an application running on a Tomcat Server.

1. Created a Test Plan with the following elements

 1. 9 Thread Groups  (The above specified 180 users are distributed among   
   these   9   Threads)

      Thus the 9 threads have n1, n2 , ..... n9 number of users/Threads where
n1 + n2 + ... n9 = 180 

 2.   Ramp-up period for each Thread group is calculated as nx * 3.333333

 As the over all ramp-up period for all the 180 users is 10 minutes which is
600 seconds, Ramp-up period per user is 600/180  = 3.333333

 Thus making the ramp-up periods of the 9 thread groups as n1 * 3.333333 , n2 *
3.333333 ......n9 * 3.333333

When I ran the jmeter, it is throwing the following exception .

 java.net.ConnectException: Connection timed out: connect
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:222)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:433)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
        at java.lang.Thread.run(Unknown Source)
Caused by: 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 sun.net.www.protocol.http.HttpURLConnection.followRedirect(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown
Source)
        at java.net.URLConnection.getContentEncoding(Unknown Source)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:213)
        ... 5 more




Note : Its not happening for all the threads , Its not even happening
consistently for specific Threads. Its happening fora random pattern of
threads.



 Can any one please have a look and let me know what is causing this exception.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45998] Getting the exception java.net.ConnectException: Connection timed out: connect

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45998


Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Sebb <se...@apache.org>  2008-11-08 17:27:58 PST ---
This is really a question for the user list.

Looks like the host or the server is running out of connections.

It's not a JMeter bug.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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