HTTP persistent connections are the idea of using the same TCP connection to send and receive multiple HTTP requests/responses, as opposed to opening a new one for every single request/response pair. Using persistent connections is very important for improving HTTP performance.
There are several advantages of using persistent connections, including:
- Network friendly. Less network traffic due to fewer setting up and tearing down of TCP connections.
- Reduced latency on subsequent requests. Due to avoidance of the initial TCP handshake
- Long-lasting connections allow TCP sufficient time to determine the congestion state of the network, thus reacting appropriately.
Ex. configurations how to use HTTP persistent connections is BW (edit bwengine.tra)
bw.plugin.http.client.usePersistentConnectionManager=true bw.plugin.http.client.maxTotalConnections=200 bw.plugin.http.client.maxConnectionsPerHost=20 bw.plugin.http.client.ResponseThreadPool=50 bw.plugin.http.client.ResponseThreadPool.type=single/default bw.plugin.http.client.checkForStaleConnections=true