Advanced Linux Server Troubleshooting (part 2)
Dec 09, 2010, 16:03 (0 Talkback[s])
(Other stories by Akkana Peck)
"You know the basics of how to find out what an errant process
is doing -- or if not, you may want to review Troubleshooting part
"But sometimes those methods aren't enough. What if the failed
process is on a server, or a minimal system like a sheevaplug, and
you don't have tools like gdb and strace installed? Or what if the
runaway process is in Python, so your gdb stack trace isn't any
help? What are your options then?
"Getting info without gdb or strace: /proc
"Even if you don't have any system tools installed, you can get
a lot of the same information from the /proc filesystem.
"Suppose you have a process that seems frozen and you want to
know why. Get its process ID with ps and grep:"