title: java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind
body: <p>Tomcat is running a webapp under Windows. After a few days (under very low load), the exception mentioned in the title starts to appear in the logs, no new connections can be established from that point on, the only fix is then to reboot the server.</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>Latest Tomcat 6</li>
  <li>Windows Server 2008 R2</li>
  <li>JDK 6 update 30</li>
  <li>SQL Server 2008</li>
  <li>Kerberos authentication</li>
  </ul>
  
  <p>Evidence collected so far:</p>
  
  <ul>
  <li>netstat shows no excessive amount of connections</li>
  <li>ProcessExplorer shows no excessive amount of open file handles</li>
  <li>system main memory usage is average</li>
  <li>JVM heap usage is average</li>
  <li>restarting Tomcat does not solve the problem </li>
  </ul>
  
  <p>Open questions: </p>
  
  <ul>
  <li>if we were leaking connections, shouldn't they show up in netstat?</li>
  <li>shouldn't a restart of the appserver resolve the problem, because the OS should free all process resources?</li>
  <li>is there a way to trace the problem to its origin? E.g. installing monitoring software, maybe something similar to lsof etc.?</li>
  </ul>
  
  <p>I'm out of ideas, any hints appreciated!</p>