title: Get deadlock detection from running programm or dump in Java
body: <p>I have a piece of running java software that is jammed. I would like to get a view inside but have got no idea how to do that.</p>
  
  <p>Is there some tool that I can give a PID and it will tell me where every thread is currently located and maybe a few values of the variables as well? I'm running linux.</p>
  
  <p>I more or less know what is causing the problem, but there a still a few possible cases, therefor pinpointing it would be nice.</p>
  
  <p>I can't reproduce the error because it only appears every few days and never appeared while debugging, so this is a unique change of getting to know the enemy.</p>
  
  <p>Any ideas?</p>