title: Take thread dump of application without tomcat restart
body: <p>I had to create thread dump of web application in tomcat runned as a service without need to restart tomcat. I tried to attach jconsole, jvisualvm, jstack, but without success.</p>
  
  <ul>
  <li>Tomcat is not jmx remote enabled. (But can't introduce properties - can't restart it) </li>
  <li>I tried to execute applications from the same user as the service, change TEMP, TMP folders</li>
  <li>I want to execute  it locally - on the same server as tomcat as no configuration should be needed (hence no restarting) ("Note: This configuration is needed only if you are going to monitor Tomcat remotely. It is not needed if you are going to monitor it locally, using the same user that Tomcat runs with.")</li>
  <li>In jConsole process is showed grayed, sometimes not visible - could not attach it</li>
  <li>In jStack: Insufficient memory or insufficient privilages to attach</li>
  <li>Tomcat is running on Windows machine</li>
  </ul>
  
  <p>Any ideas? </p>