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.
Any ideas?
I would have recommended jcmd, but I think it has the same problems with local attach as jstat and the other tools.
According to the following two google hits, "psexec -s jstack PID" seems to be a solution (which I have not tried)
https://www.assetbank.co.uk/support/documentation/knowledge-base/how-to-take-a-java-thread-dump/ https://access.redhat.com/solutions/19170