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) General Commands Manual pstack(1)NAME
pstack - print a stack trace for each LWP in each process and core file
SYNOPSIS DESCRIPTION
prints a stack trace (hex+symbolic) for each LWP (Lightweight Process) in each process and core file.
Given the pid of a running process or the full path of a core file, prints the stack trace for each LWP thread in the process. To obtain
symbol information, searches load modules (executable and shared libraries) in the current directory, and You can specify the executable
path with the pid/corepath, separated by a colon character. If cannot find a load module, symbol information for frames in that module is
not displayed.
works by attaching to the running process and reading its registers, memory, and stack. Mismatch between executable and corefile may
result in unpredictable behavior.
Options
supports the following option:
Prints the usage menu.
Operand
supports the following operand:
pid identifies a running process, with an optional execpath, the full executable path.
corepath is the full path name of the specified executable.
RETURN VALUES
returns the following values:
Successful completion.
Failure.
An error has occurred.
SEE ALSO ldd(1), pldd(1).
Itanium(R)-based Systems Onlypstack(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)