Perintah pstack(1) mencetak jejak tumpukan dari proses yang sedang berjalan. Gunakan langkah-langkah di bawah ini untuk menginstalnya pada sistem CentOS/RHEL.
Paket apa yang menyediakan Perintah pstack
Untuk CentOS/RHEL 5
Paket pstack dapat diinstal dengan:
# yum install pstack
Untuk CentOS/RHEL 6,7
Di CentOS/RHEL 6/7, alat pstack disediakan oleh gdb kemasan. Untuk menginstal gdb, lakukan :
# yum install gdb
Paket gdb akan menyertakan perintah gstack dan pstack. Misalnya:
# rpm -ql gdb-7.2-92.el6.x86_64 | egrep "pstack|gstack" /usr/bin/gstack /usr/bin/pstack
Penggunaan Perintah
Anda kemudian dapat menyebutnya sebagai 'pstack ‘ atau ‘gstack ‘.
# gstack Usage: gstack [process-id]
# pstack Usage: pstack [process-id]
Contoh
# gstack 21142 Thread 2 (Thread 0x7f1b3181b700 (LWP 21148)): #0 0x0000003dfaadf3e7 in ppoll () from /lib64/libc.so.6 #1 0x0000003a4f43298e in pa_rtpoll_run () from /usr/lib64/libpulsecore-0.9.21.so #2 0x00007f1b27bfb0a7 in ?? () from /usr/lib64/pulse-0.9.21/modules/module-null-sink.so #3 0x00000032b12389b8 in ?? () from /usr/lib64/libpulsecommon-0.9.21.so #4 0x0000003dfae079d1 in start_thread () from /lib64/libpthread.so.0 #5 0x0000003dfaae89dd in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f1b376ad740 (LWP 21142)): #0 0x0000003dfaadf3e7 in ppoll () from /lib64/libc.so.6 #1 0x00000032b161cb87 in pa_mainloop_poll () from /usr/lib64/libpulse.so.0 #2 0x00000032b161dec9 in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0 #3 0x00000032b161df80 in pa_mainloop_run () from /usr/lib64/libpulse.so.0 #4 0x000000000040a927 in main ()
# pstack 21142 Thread 2 (Thread 0x7f1b3181b700 (LWP 21148)): #0 0x0000003dfaadf3e7 in ppoll () from /lib64/libc.so.6 #1 0x0000003a4f43298e in pa_rtpoll_run () from /usr/lib64/libpulsecore-0.9.21.so #2 0x00007f1b27bfb0a7 in ?? () from /usr/lib64/pulse-0.9.21/modules/module-null-sink.so #3 0x00000032b12389b8 in ?? () from /usr/lib64/libpulsecommon-0.9.21.so #4 0x0000003dfae079d1 in start_thread () from /lib64/libpthread.so.0 #5 0x0000003dfaae89dd in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f1b376ad740 (LWP 21142)): #0 0x0000003dfaadf3e7 in ppoll () from /lib64/libc.so.6 #1 0x00000032b161cb87 in pa_mainloop_poll () from /usr/lib64/libpulse.so.0 #2 0x00000032b161dec9 in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0 #3 0x00000032b161df80 in pa_mainloop_run () from /usr/lib64/libpulse.so.0 #4 0x000000000040a927 in main ()
Kesalahan XFS:Tidak dapat memasang sistem file Dengan Izin Noacl di CentOS/RHEL 7
Cara Mengatur mutt di CentOS/RHEL