I have a Java process. I am using log4j
for logging purpose. I have specified in log4j.xml
, location and name of log file. logging is working fine. I have problem with kill -3
logs here.
I trying to get process-dump using kill -QUIT <pid>/ killl -3 <pid>
. I expected the dump generated by kill -3
to get updated in log file specified in log4j.xml
.
But it is not happening that way. I need the dump to observer thread statuses. I do not know any other way to get process dump of a running process.