I start up a jvm process on a linux platform, like tomcat web container. start up command-line :
nohup sh > nohup.out 2>&1 &
When i take a "kill -3 " command, the thread dump information will output to the nohup.out file.
How can i redirect the output to a file singly ?
The Sun HotSpot JVM it's own toolkit from jdk 1.5 which is called jstack, it's very useful by using Sun HotSpot JVM, but the JRockit JVM and HP HotSpot JVM, IBM J9 VM are unsuited.
How can wirte a good generality toolkit to redirect the thread dump information to a single file, and not be stdout file ?