Observations:
My web app is running in JBoss.
Every single user-click generates >5 HTTP requests because of images etc.
Running netstat on the server reveals that a new TCP connection is being opened for every single HTTP request (basically I am looking at the total number of TCP connections from the client IP on port 80).
Facts:
JBoss HTTP protocol is set at 1.1.
I have checked with FF, IE9 and Chrome - and all browsers do the same.
I have two test environments - one running on Windows7 and the other one running on CentOS. I see the same behavior in both.
What I am trying to accomplish
- Persistent TCP connection, because hopefully that would a) enhance user experience and b) reduce load on the server
At this point, I am not sure what code, configuration details or log I should attach to the question, but if you let me know, I will provide it. Any kind of help is appreciated.
p.s. This thread seemed promising from the title TCP connection is not reused for HTTP requests with HttpURLConnection, but it deals mainly with the client side.