title: How to get a thread and heap dump of a Java process on Windows that's not running in a console
body: <p>I have a Java application that I run from a console which in turn executes an another Java process. I want to get a thread/heap dump of that child process.</p>
  
  <p>On Unix, I could do a <code>kill -3 &lt;pid&gt;</code> but on Windows AFAIK the only way to get a thread dump is Ctrl-Break in the console. But that only gives me the dump of the parent process, not the child.</p>
  
  <p>Is there another way to get that heap dump?</p>