Skip to content

Comment on Strace - The Sysadmin's Microscope (2010)

Comments

Actually this tool is not only for Sysadmin's - it is very helpful for developers. I know there are other tools like gdb, etc. But if you have to use (calling from your program) other programs, or if the library that you use does something strange, then strace is a shortcut.

From this article I learned that strace can be called to analyse an already running process (-p).

It's possible to pass up to 32 -p arguments. For example, tracing multiple apache worker processes:

    strace `ps -C httpd -o pid= |xargs -Ix echo -n '-p x '`
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.