Services and User Management

A web server with PID 2241 is intermittently slow. It forks worker processes. The administrator wants to attach to the running server, follow the workers it creates, and save the output to a file. Which three strace options accomplish this? (Choose three.)

Choose 3 answers

Show the answer

Correct answersB. -f to follow child processes created by forkC. -p 2241 to attach to the running processE. -o /tmp/web.trace to write the output to a file

-p attaches to an existing PID, -f follows forked children, and -o writes the trace to a file. -c is tempting but only produces a summary table of call counts, time and errors instead of logging each call.