title: How do I determine if java connection pooling is working with URLConnection?
body: <p>As can be seen in <a href="http://java.sun.com/j2se/1.5.0/docs/guide/net/http-keepalive.html" rel="nofollow noreferrer">this document</a>, a number of preconditions have to be met before TCP connection pooling "works" in java when using <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html" rel="nofollow noreferrer">URLConnection</a>. How can I determine if the connections are being pooled ? Are there any objects I can inspect in the sun jdk for this ? </p>