How to run kill -3 mq_java?

Dear Expert,

My customer find the mq broker are hang up serveral times per week. The mq version is 3.6 EE version.

[sb2000a]# ps -ef |grep imq

root 10665 1 0 12:27:56 ? 0:00 /bin/sh /usr/bin/imqbrokerd -vmargs -Xmx512m -XX:NewRatio=4 -verbose:GC

root 10676 10665 0 12:27:56 ? 0:16 /usr/jdk/entsys-j2se/bin/java -server -cp /usr/bin/../../usr/share/lib/imq/imqb

My question is i want to run kill -3 10676 to investigate the problem when the mq hang up reoccur, but the "kill-3" output only display on console, which startup the imqbrokerd.

How can i make the kill -3 output to a file in this case?

thanks,

Angus

[686 byte] By [anyiu] at [2007-11-25 22:00:17]
# 1
Try this:/bin/sh -c "/usr/bin/imqbrokerd -tty > /tmp/broker.log 2>&1"
jnakata at 2007-7-5 1:26:36 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 2

If you are running the broker w/ a 1.5 JDK, you can use the new jstack commands:

jps

882

931 Broker

942 Jps

jstack 931

Attaching to process ID 931, please wait...

Debugger attached successfully.

Server compiler detected.

JVM version is 1.5.0_06-b05

Thread t@1: (state = BLOCKED)

....

thread info

.....

Linda_Schneider at 2007-7-5 1:26:36 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...