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 libpthread.so. (To check, run nm(1) on your pthreads library, and make sure that the
symbol "__pthread_threads_debug" is defined.)
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)
Check Out this Related Man Page
jstack(1) General Commands Manual jstack(1)NAME
jstack - stack trace
SYNOPSIS
jstack [ option ] pid
jstack [ option ] executable core
jstack [ option ] [server-id@]remote-hostname-or-IP
DESCRIPTION
jstack prints Java stack traces of Java threads for a given Java process or core file or a remote debug server. For each Java frame, the
full class name, method name, 'bci' (byte code index) and line number, if available, are printed. With the -m option, jstack prints both
Java and native frames of all threads along with the 'pc' (program counter). For each native frame, the closest native symbol to 'pc', if
available, is printed. C++ mangled names are not demangled. To demangle C++ names, the output of this command may be piped to c++filt.
NOTE - This utility is unsupported and may or may not be available in future versions of the J2SE SDK. jstack is not currently available
on Windows platforms or on the Linux Itanium platform.
PARAMETERS
Options are mutually exclusive. Option, if used, should follow immediately after the command name.
pid process id for which the stacktrace is to be printed. The process must be a Java process. To get a list of Java processes
running on a machine, jps may be used.
executable Java executable from which the core dump was produced.
core core file for which the stack trace is to be printed.
remote-hostname-or-IP
remote debug server's (see jsadebugd) hostname or IP address.
server-id optional unique id, if multiple debug servers are running on the same remote host.
OPTIONS -m prints mixed mode (both Java and native C/C++ frames) stack trace.
-h Prints a help message.
-help Prints a help message.
SEE ALSO pstack(1) c++filt(1)jps(1)jsadebugd(1)KNOWN BUGS
Mixed mode stack trace, the -m option, does not work with the remote debug server.
13 June 2004 jstack(1)
Hello,
I'm running Red Hat Linux on a Dell Poweredge 2650 Rack Server and wondered if anyone knew of a tool or command I could use to probe the memory slots on the motherboard.
I know the machine has six memory slots and currently contains 1GB RAM, what I don't know however, is if it contains... (3 Replies)
I have a PC running XP, and I have a PC that dual boots W2K and Red Hat Linux 7.3.
I have the two connected via crossover cable, and the two can access each other when both are running windows.
If I were to boot up Linux, can my XP PC telnet to the Linux PC? Any pointers or websites to... (3 Replies)
Hello~ I recently got a class of Linux. Im running Red Hat Linux. Can you guys help me out on the file extensions, and what they mean. Well the most common ones.
Also, how the file system works. I know the '/' is like the beginning of everything. This sounds a little stupid, but i wanna try to... (3 Replies)
I'm on solaris 8. I need to check the stack trace inside my C program. I don't have printstack or walkstack. I tested getcontext and it works. But how do I get the symbols from "stack_t" ? Help please. Many thanks! (4 Replies)
All - I have a stack of RS6000's that need a Linux install - Red Hat 5.2 to be exact. Any tips/pointers on how to get this done without an HMC? I can get the discs to boot, but the install hangs when asking for user interaction - like pressing 'ENTER' to skip disc media check.
Any help greatly... (4 Replies)
Dear All,
Need your help to rectify this error.
Recently I have upgraded my Linux server from 32 bit to 64 bit server.
OS details are
Red Hat Enterprise Linux Server release 5.3
Kernel 2.6.18-120.el5 on an x86_64
After upgradation, when i try to compile or catalog any program, it is... (2 Replies)
Hello.
I have a HP dl380 g5 with the following installed.
Red Hat Enterprise Linux ES release 3 (Taroon Update 6)
Linux test 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux
Im used to solaris wit SUN using HW.
In this linux installation how do I see the... (3 Replies)
Hi there
I have written a ksh script on a Red Hat OS and the following extract works.
awk '{if (NR != 1) {print $rec1_field }}' $file1 >> combined
When I run the same script on an AIX OS, I get the following error.
awk: 0602-562 Field $() is not correct.
The input line number is 2. The... (12 Replies)
Hi Guys,
I just wondering if any of the AIX gurus with some exposure to Linux Redhat can tell me whether in Linux ( Red Hat or OpenSuse ) we have a similar option/capability like the CIO (Concurrent I/O) which is currently available on AIX. The reason I'm asking is because in the past we... (2 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 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)
Hi everyone,
Our Red Hat server hung yesterday, and I managed to log into the console and see the following message:
RIP: 0010: mwait_idle_with_hints+0x66/
0x67
RSP: 0018:ffffffff80457f40 EFLAGS: 00000046
RAX: 0000000000000010 RBX: ffff810c20075910 RCX: 0000000000000001
RDX:... (6 Replies)
Hello All,
I am new joiner of this forum.I am new to Linux shell scripting.
At present I have identified 1 application which stalls very frequently (PID is say xyz) and I am not having much information in its application log to identify the root cause of stalling. I need to take the core dump... (19 Replies)