title: Get the number of open sockets weblogic
body: <p>I am trying to getting the total number of currently open sockets so that I can check to see if it is over 300: if so, I'd like to send an alert.</p>
  
  <p>I referred to <a href="https://docs.oracle.com/cd/E13222_01/wls/docs81/admin_ref/admin_refIX.html" rel="nofollow">this page</a>, but I wasn't able to find something to get the number of open sockets. I think that the code goes something like this:</p>
  
  <pre><code>java -classpath .../weblogicj.ar weblogic.Admin 
       -adminurl IP 
       -username USER 
       -password PASS "HERE GOES THE CODE" NAMEOFSERVER
  </code></pre>
  
  <p>How do I go about determining the number of sockets?</p>