...
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 | AHC Servlet | HttpComponents | ||
---|---|---|---|---|---|
16 | |||||
100 |
|
| 0.877 5.252 | ||
200 | |||||
400 |
|
| 4.1323 | ||
500 | 39.590 500 |
Code location and References
...