AnsweredAssumed Answered

During loadtest: java.net.ConnectException: Cannot assign requested address

Question asked by stephan.burkard on Mar 29, 2016
Latest reply on Mar 30, 2016 by stephan.burkard

Hi

 

I get a lot of errors (see below) during loadtests within CA Lisa. Does anybody know what the reason for these errors is? 

 

Some more information:

  • I am doing HTTP GET requests against the SUT.
  • The response is very small and takes only about 20ms.
  • I scale up from 1 to 20 threads in 40 seconds (stair)
  • The whole test runs about 5m 30s and reaches about 80'000 cycles
  • The errors occur more or less in the middle of the test
  • I allow up to 10'000 errors in the staging doc to avoid that the test is aborted by Lisa
  • In the overview, Lisa reports 236 fails and 472 errors, but in the detailed error report I get more than 27'000 errors with empty request/response and the message below as reason

 

Thanks for any help

Stephan

 

 

The error message:

http GET :

============================================================================

|

============================================================================

| HTTP

============================================================================

| Step:        http GET

----------------------------------------------------------------------------

| Message:     java.net.ConnectException: Cannot assign requested address

----------------------------------------------------------------------------

| Trapped Exception: Cannot assign requested address

| Trapped Message:   java.net.ConnectException: Cannot assign requested address

----------------------------------------------------------------------------

STACK TRACE

java.net.ConnectException: Cannot assign requested address

  at java.net.PlainSocketImpl.socketConnect(Native Method)

  at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

  at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

  at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

  at java.net.SocksSocketImpl.connect(Unknown Source)

  at java.net.Socket.connect(Unknown Source)

  at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)

  at com.itko.lisa.test.ReuseSocketHttpProtocolSocketFactory.connectSocket(ReuseSocketHttpProtocolSocketFactory.java:30)

  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)

  at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)

  at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)

  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)

  at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

  at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1015)

  at com.itko.lisa.test.CommTrans.send(CommTrans.java:811)

  at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:758)

  at com.itko.lisa.test.URLTrans.doSend(URLTrans.java:280)

  at com.itko.lisa.test.URLTrans.doWebTrans(URLTrans.java:222)

  at com.itko.lisa.test.URLTransBase.execute(URLTransBase.java:491)

  at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)

  at com.itko.lisa.test.TestCase.execute(TestCase.java:1280)

  at com.itko.lisa.test.TestCase.execute(TestCase.java:1195)

  at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1180)

  at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)

  at com.itko.lisa.coordinator.Instance.run(Instance.java:204)

============================================================================

 

 

 

 

============================================================================

| Step:        http GET

----------------------------------------------------------------------------

| Message:     Cannot assign requested address

----------------------------------------------------------------------------

| Trapped Exception: Cannot assign requested address

| Trapped Message:   java.net.ConnectException: Cannot assign requested address

----------------------------------------------------------------------------

STACK TRACE

java.net.ConnectException: Cannot assign requested address

  at java.net.PlainSocketImpl.socketConnect(Native Method)

  at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

  at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

  at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

  at java.net.SocksSocketImpl.connect(Unknown Source)

  at java.net.Socket.connect(Unknown Source)

  at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)

  at com.itko.lisa.test.ReuseSocketHttpProtocolSocketFactory.connectSocket(ReuseSocketHttpProtocolSocketFactory.java:30)

  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)

  at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)

  at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)

  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)

  at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

  at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1015)

  at com.itko.lisa.test.CommTrans.send(CommTrans.java:811)

  at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:758)

  at com.itko.lisa.test.URLTrans.doSend(URLTrans.java:280)

  at com.itko.lisa.test.URLTrans.doWebTrans(URLTrans.java:222)

  at com.itko.lisa.test.URLTransBase.execute(URLTransBase.java:491)

  at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)

  at com.itko.lisa.test.TestCase.execute(TestCase.java:1280)

  at com.itko.lisa.test.TestCase.execute(TestCase.java:1195)

  at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1180)

  at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)

  at com.itko.lisa.coordinator.Instance.run(Instance.java:204)

============================================================================

 

Outcomes