Java stack trace on Windows

richs picture richs · Mar 18, 2009 · Viewed 17.1k times · Source

I need to get a stack trace for a JVM process running on a client machine that uses windows.

The client has the JRE installed but not the JDK.

I want to use JStack but it is not installed and we can't install a JDK on the client's machine. I also tried using AdaptJ stack trace product from a Java Webstart Session but that didn't work because we remote in and get an error about not being the session that started the application at a specified PID.

Essentially I want a way to install JStack without installing the JDK.

Answer

Eddie picture Eddie · Mar 18, 2009

You probably want to use SendSignal, which was designed for exactly this purpose.