title: Java Server Wrapper (tanuki) - Startup failed: Timed out waiting for a signal from the JVM
body: <p>I'm trying to set up an own application with the <code>Tanuki Java Service Wrapper</code>.</p>
  
  <p>The setup and configuration worked fine but after starting my application via the wrapper (what also works) it gets shut down after a while because the wrapper "timed out waiting for a signal from the JVM".</p>
  
  <p>My application is working after the start and still gets shut down.</p>
  
  <p>I'm currently still in the setup / test phase so I just start the wrapper via the <code>bat</code> file and not as Windows service yet.</p>
  
  <p>I had two ideas why this could be:</p>
  
  <p>1) The main thread terminates after starting a few other threads. I tried to let the main thread just wait forever instead of terminating but that didn't help (besides that the wrapper should also work without the main thread I guess).</p>
  
  <p>2) My program is mostly just waiting for events (directory watch service) but even if I trigger some events it still gets shut down.</p>
  
  <p>I tried to disable the JVM ping check via <code>wrapper.ping.timeout=0</code> but that didn't work either and it would be nice if I had the check in case the app would really hang.</p>
  
  <p>I'm using <code>jdk1.7.0_79</code> and <code>wrapper-windows-x86-32-3.5.27</code>.</p>