title: High load on jetty
body: <p>I'm running load tests on my MBP. The load is injected using gatling.</p>
  
  <p>My web server is jetty 9.2.6</p>
  
  <p>On a heavy load, number of threads remains constant : 300 but the number open socket is growing from 0 to 4000+, which generates a too much open files at OS level.</p>
  
  <p>What does it mean ?
  Any idea to improve the situation ?</p>
  
  <p>Here is the output of jetty stat</p>
  
  <p><code>Statistics:
  Statistics gathering started 643791ms ago
  Requests:
  Total requests: 56084
  Active requests: 1
  Max active requests: 195
  Total requests time: 36775697
  Mean request time: 655.7369791202325
  Max request time: 12638
  Request time standard deviation: 1028.5144674112403
  Dispatches:
  Total dispatched: 56084
  Active dispatched: 1
  Max active dispatched: 195
  Total dispatched time: 36775697
  Mean dispatched time: 655.7369791202325
  Max dispatched time: 12638
  Dispatched time standard deviation: 1028.5144648655212
  Total requests suspended: 0
  Total requests expired: 0
  Total requests resumed: 0
  Responses:
  1xx responses: 0
  2xx responses: 55644
  3xx responses: 0
  4xx responses: 0
  5xx responses: 439
  Bytes sent total: 281222714
  Connections:
  org.eclipse.jetty.server.ServerConnector@243883582
  Protocols:http/1.1 
  Statistics gathering started 643784ms ago
  Total connections: 8788
  Current connections open: 1
  Max concurrent connections open: 4847
  Mean connection duration: 77316.87629452601
  Max connection duration: 152694
  Connection duration standard deviation: 36153.705226514794
  Total messages in: 56083
  Total messages out: 56083
  Memory:
  Heap memory usage: 1317618808 bytes
  Non-heap memory usage: 127525912 bytes
  </code></p>