gaudi_br 0 Newbie Poster

Hi,

We've got an application running on Tomcat and we've setup Manage Engine's Applications Manager 9.0 to monitor our environment. I've set an alarm that fires whenever a thread is in the "BLOCKED" state at the moment of the polling and I'd like to get a thread dump of that moment so that I can debug the blocks (same for deadlocks).
I don't think the monitoring tool offers this possibility by default, but I could execute a batch file from the monitoring server to get that thread dump.
The question is, how do I create a batch file that polls a remote host and gets that host's jvm's thread dump to write on a file?

Thanks for your help.