title: My Websocket takes forever to connect
body: <p><strong><em>UPDATE</em></strong>
  It seems that in org.glassfish.tyrus.core.BaseContainer in the constructor, these two lines run super slow:</p>
  
  <pre><code>this.managedExecutorService = lookupManagedExecutorService();
  this.managedScheduledExecutorService = lookupManagedScheduledExecutorService();
  </code></pre>
  
  <p>What is the deal with the mention of Android in the comments of both methods, am I using the wrong code for Java that is aimed at Desktops?</p>
  
  <hr>
  
  <p>I am using the code exactly as it is from:</p>
  
  <p><a href="https://tyrus.java.net/documentation/1.9/user-guide.html#d0e78" rel="nofollow noreferrer">Tyrus Websocket Documentation: 1.1.2 Client Endpoint</a></p>
  
  <p>Somehow it takes about 10 seconds to connect, specifically at this line when I run Eclipse's debugger:</p>
  
  <pre><code>ClientManager client = ClientManager.createClient();
  </code></pre>
  
  <p>Could it be related to this? <a href="https://stackoverflow.com/questions/15135506/websocket-connection-setup-takes-a-relatively-long-time-is-this-normal">Potentially similar Stack Overflow Question</a></p>
  
  <p>I am really lost, I feel like I am a rare outlier trying to use websockets with a Java client as opposed to a browser with Javascript.</p>