GBase集群在问题分析时,经常使用pstack命令打印gclusterd、gbased进程的堆栈信息,供研发进行问题分析。
pstack的预期结果
[root@localhost /]# ps -ef|grep gbased
gbase 10591 1 0 15:06 ? 00:00:11 /opt/192.168.255.3/gnode/server/bin/gbased
root 12418 12274 0 22:11 pts/1 00:00:00 grep --color=auto gbased
[root@localhost /]# pstack 10591
Thread 526 (Thread 0x7fdea3d34700 (LWP 10593)):
#0 0x00007fdea3151361 in sigwait () from /lib64/libpthread.so.0<