Sample Header Ad - 728x90

How to redirect Java thread dumps from "kill -3" to a custom file instead of "catalina.out"

0 votes
2 answers
2082 views
I used to take thread dumps using:
kill -3 pidof java
This creates thread dumps in catalina.out. How can I get that output into a different file instead of catalina.out? Usually, the kill command doesn’t output to stdout or stderr, so we can't capture it by redirecting script output or using exec at the beginning. Is there any way to do this?
Asked by SAGAR Nair (317 rep)
Dec 12, 2018, 10:56 PM
Last activity: Apr 29, 2025, 03:11 PM