Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following test results show a comparison between an AHC enhanced servlet and a normal blocking servlet. Each of these servlets are pounded by 16, 200 and 500 simultaneous requests. The output captured from the python script shows the response time for each request. These tests also demonstrate the significance of tuning the IP stacks. When none of the machines are tuned, the response time starts increasing as the number of threads start increasing. Executing a netstat command shows that most sockets are either in TIME_WAIT or CLOSED_WAIT state.

Threads

Blocking Servlet
max response time (secs)

AHC Servlet
max response time(secs) Blocking Servlet

HttpComponents
max response time (secs)

16

5.252

2.081

0.3429

100

 

 

0.877 5.252

200

25.935

7.575

25.935

3.836

400

 

 

4.1323

500

39.590 500

12.917

395.5909575

Code location and References

...