GSTACK(1) Linux Programmer's Manual GSTACK(1)NAME
gstack - print a stack trace of a running process
SYNOPSIS
gstack pid
DESCRIPTION
gstack attaches to the active process named by the pid on the command line, and prints out an execution stack trace. If ELF symbols exist
in the binary (usually the case unless you have run strip(1)), then symbolic addresses are printed as well.
If the process is part of a thread group, then gstack will print out a stack trace for each of the threads in the group.
SEE ALSO nm(1), ptrace(2), gdb(1)AUTHORS
Ross Thompson <ross@whatsis.com>
Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Red Hat Linux Feb 15 2008 GSTACK(1)
Check Out this Related Man Page
PSTACK(1) Linux Programmer's Manual PSTACK(1)NAME
pstack - print a stack trace of running processes
SYNOPSIS
pstack pid [...]
DESCRIPTION
pstack attaches to the active processes named by the pids on the command line, and prints out an execution stack trace, including a hint at
what the function arguments are. If symbols exist in the binary (usually the case unless you have run strip(1)), then symbolic addresses
are printed as well.
If the process is part of a thread group, then pstack will print out a stack trace for each of the threads in the group.
RESTRICTIONS
pstack currently works only on Linux, only on an x86 machine running 32 bit ELF binaries (64 bit not supported). Also, for symbolic infor-
mation, you need to use a GNU compiler to generate your program, and you can't strip symbols from the binaries. For thread information to
be dumped, you have to use the debug-aware version of the LinuxThreads libpthread.so library. (To check, run nm(1) on your pthreads
library, and make sure that the symbol "__pthread_threads_debug" is defined.) Threads are not supported with the newer NPTL libpthread.so
library.
SEE ALSO nm(1), ptrace(2)AUTHORS
Ross Thompson <ross@whatsis.com>
Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Red Hat Linux Feb 25 2002 PSTACK(1)
My company has a product that is running on JBoss on Solaris against Oracle 8.1.7. We are having an issue with the server process and high CPU utilization. During this time, and only during this time, we are experiencing database locks that will not let go. A 'ps -L' on the server process... (5 Replies)
Hello,
I'm new to the group and this is my first post. I'm hoping someone can help me out. I have a core dump that I need to analyze from a Unix box and I've never done this sort of thing before. I was told to run a pmap and pstack on the core file which provided two different output files. ... (3 Replies)
Hello everyone,
I have a 12-thread application running on Solaris 9.
When I use the pstack command after a typical core dump, it prints the stack output of all 12 threads/lwps. This is the standard procedure as it is described in the Solaris MAN pages.
Is there a way to filter out the... (1 Reply)
Hi All ,
I am wanted to know the #of thread ( Kernal & User ) created by the Process
i was looking into the prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
994 httpd 126M 99M sleep 58 0 1:11.25 2.4% ns-httpd/33
997 httpd 114M 86M sleep 58 0 0:40.02 2.7% ns-httpd/22
995... (0 Replies)
Dear All,
I am new to this forum. This is my first.
I am facing customer issue. Customer has got core file while running the server.
He had sent core file and details from pstack, pmap and pldd commands.
I have to debug this application, please help me to fix this issue.
I am using sparc... (1 Reply)
Dear All,
I am new to this forum. This is my first.
I am facing customer issue. Customer has got core file while running the server.
He had sent core file and details from pstack, pmap and pldd commands.
I have to debug this application, please help me to fix this issue.
I am using sparc 10... (4 Replies)
Hi All
I would like to use the tool "pstack" to get a sample of the stack trace for a process.
As far as I understood It seems widely available in all Linux systems, but it is not in Ubuntu 10.10.
I tried using apt-get as per some posts in few forum, but it cannot be found in the APT... (9 Replies)