The Wrapper can be configured to request a thread dump before killing the JVM using the internal
property. However, as an example, this can also be done by executing a command
in response to the jvm_kill event.
On UNIX, a thread dump can also be invoked by sending a SIGQUIT signal to the JVM process.
The jvm_kill event takes place immediately before the JVM process is killed.
This means that the JVM will likely have already been killed by the time the signal is actually sent.
To work around this timing problem, we add a 5 second delay
between the execution of the external command and the Wrapper actually killing the JVM.
This could also be done on Windows when running as a service.
The following example assumes that the service is named "MyApp".
The "255" needs to match the value of the