title: Tomcat hangs and prevents Eclipse from shutting down after running some time
body: <p>I'm running Eclipse 4.6.1 with in-IDE Tomcat 8.5.6 on Windows 10 Professional 64-bit Anniversary Edition.</p>
  
  <p>After Tomcat is left running in Eclipse after some time, the Tomcat embedded in Eclipse can no longer be stopped. I press the red "Stop" button in the "Servers" tab, but nothing happens. Eventually Eclipse will ask me if I want to terminate Tomcat:</p>
  
  <blockquote>
    <p>Server Tomcat v8.5 Server at localhost is not responding. Do you want to terminate this server? Click OK to terminate the server or click Cancel to continue waiting.</p>
  </blockquote>
  
  <p>I click "OK to terminate the server... but Tomcat keeps running.</p>
  
  <p>Unfortunately when I then try to close Eclipse, it hangs on "Saving workbench state." Finally I have to kill Eclipse, thereby losing my workbench state. Even worse, if I then start Eclipse back up and try to restart the embedded Tomcat, I get the following error:</p>
  
  <blockquote>
    <p>'Starting Tomcat v8.5 Server at localhost' has encountered a problem.</p>
    
    <p>Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).</p>
  </blockquote>
  
  <p>How can I surgically go in and really kill Tomcat so that it doesn't hang Eclipse and keep ports open? (Unfortunately the only thing that shows up in the task manager is Eclipse.exe. There is no Tomcat to be seen. I've tried killing the <code>javaw.exe</code> subprocess, but that doesn't help.)</p>
  
  <p>(At one point I thought this was related to a VPN connection going down, but today this happened with no VPN connection at all.)</p>
  
  <p>I've filed <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=511342" rel="nofollow noreferrer">Eclipse Bug 511342</a>. We'll see if anything comes of it.</p>