Using strace to attach to a multi-threaded process (like a JVM/Java)…

When using strace to attach to a process that is running many threads, use the following format for a system call summary:

strace -f -c -p PID  -o /tmp/outfile.strace

To run a trace without a summary, which will result in voluminous amounts of space, omit the ‘-c’:

strace -f -p PID  -o /tmp/outfile.strace

This will capture system calls from all threads within the process.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *