title: Oracle Weblogic Server: java.net.SocketException "Too many open files"
body: <p>I get the following exception when loading the server with webservice calls:</p>
  
  <pre><code>&lt;2013-nov-19 kl 0:23 CET&gt; &lt;Critical&gt; &lt;Server&gt; &lt;BEA-002616&gt; &lt;Failed to listen on 
  channel "Default" on 10.39.21.109:28404, failure count: 1, failing for 0 seconds,
  java.net.SocketException: Too many open files (errno:24)&gt;
  </code></pre>
  
  <p>The machine that is used is an HP-UX.</p>
  
  <p>If I look at these files (using lsof) that the application has opened I can see that there is a webservice connection that hasn't been closed.</p>
  
  <pre><code>java    19290 xxxx 2102u  IPv4 0xe00000038b2df680    0t2534      
  TCP u30427.xx.yy:63565-&gt;u30436.xx.yy:36693 (CLOSE_WAIT)
  </code></pre>
  
  <p>These connections increases over time and reaches the maximum allowed number of files, and hence, the ”Too many open files” is thrown.</p>
  
  <p>The strange part is that if I use HTTP (without SSL) it works fine, however when using HTTPS/SSL I get this error.</p>
  
  <p>Does anyone here have any clue of what I can do to solve this problem?</p>
  
  <p>Thanks!</p>