I've been having a strange problem with externally linked Javascript libraries hanging my load balancer server running HAProxy. I recently integrated the Quantcast monitoring script, and it worked for about 12 hours, and the next morning I experienced a huge amount of network connections hanging as shown in the graph below. All of the webservers behind my load balancer were completely overloaded with connections as well. I removed Quantcast's script and the problem disappeared.
I've had this problem with some other analytics packages, but have never had this issue with Google Analytics or Adsense (both external libraries). Has anyone ever experienced this or have suggestions on how to avoid it happening?