title: WSO2 ESB Connection Time Out while Load Testing
body: <p>I am load testing <code>WSO2 ESB (4.6)</code> and get this error when the load hits about 20000 messages:  </p>
  
  <p><code>TID: [0] [ESB] [2013-08-14 11:13:04,835]  WARN {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time out after request is read: ip:port-&gt;ip:port {org.apache.synapse.transport.passthru.SourceHandler}</code></p>
  
  <p>It's a pretty basic test, I am sending messages from SoapUI to the echo service using 10 threads over 200 seconds. </p>
  
  <p>It runs till it hits about 20,000 messages and then the connection errors come up.</p>
  
  <p>I have changed the performance settings in the ESB to the optimum levels as described here <a href="http://wso2.com/library/articles/2013/01/esb-performance-65" rel="nofollow">http://wso2.com/library/articles/2013/01/esb-performance-65</a>. </p>
  
  <p>I have also found this problem reported on WSO2's site which describes the issue as occurring when the system is under high stress. But it gives no resolution. </p>
  
  <p>I did try NIO transport instead of PTT but got the same result.</p>
  
  <p><a href="https://wso2.org/jira/browse/ESBJAVA-2015?filter=11177&amp;jql=project%20%3D%20ESBJAVA%20AND%20resolution%20in%20(Unresolved%2C%20Fixed%2C%20%22Won" rel="nofollow">https://wso2.org/jira/browse/ESBJAVA-2015?filter=11177&amp;jql=project%20%3D%20ESBJAVA%20AND%20resolution%20in%20(Unresolved%2C%20Fixed%2C%20%22Won</a>'t%20Fix%22%2C%20Duplicate%2C%20Incomplete%2C%20%22Cannot%20Reproduce%22%2C%20%22Not%20a%20bug%22%2C%20Invalid)%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened%2C%20Resolved%2C%20Closed%2C%20Postponed)%20AND%20text%20~%20%22Connection%20time%20out%20after%20request%20is%20read%22%20AND%20resolved%20%3E%3D%202013-01-30%20AND%20resolved%20%3C%3D%202013-07-04%20ORDER%20BY%20priority%20DESC</p>
  
  <p>Can anyone please help?</p>