Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.net.ConnectException: Connection timed out

843838Aug 10 2005 — edited Aug 10 2005
Hai,

I am working in RedHat Linux,JSP,Servlets,Java1.4,Jakarta Tomcat 4.1.30,Apache 2,Mysql 3.23.49

When I tested my application using JMeter for 250 users. I am getting the following exception for 40 users. I am getting correct output for remaining 210 users.

Is anyone encountered this kind of problem kindly help me.

I set the connectionTimeout to 3600000( that is 1 hour) in server.xml but still I am getting this exception
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="300"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="3600000"
               useURIValidationHack="false" disableUploadTimeout="true" />
********Exception************
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient. (HttpClient.java:306)
at sun.net.www.http.HttpClient. (HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:467)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:585)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:573)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)
at java.lang.Thread.run(Thread.java:534)

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 7 2005
Added on Aug 10 2005
3 comments
2,508 views