[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Server crash.
>
> (I have tried strace but it has to much details. I need only the bottom line).
>
Tell strace to send its output to /tmp/strace.pipe, after you do
"mkdir /tmp/strace.pipe p" to create the named pipe.
leave a "tail -50 /tmp/strace.pipe" or so, and when strace is done it will
send an EOF along the pipe, and the tail will print the last 50 lines.
Make sure the tail is running before you start the server/strace because
the pipe is blocking and kernel will send your proc to sleep if the
initial 4kb page of the pipe is filled.
-Yoav
References: