This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 1 and 2
Revision 1 as of 2006-07-01 18:12:26
Size: 522
Editor: TimoSirainen
Comment:
Revision 2 as of 2007-11-20 02:47:46
Size: 636
Editor: TimoSirainen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
truss -d -o log -p <process pid> }}} truss -d -r0 -w1 -o log -p <process pid> }}}

{{{-r0}}} and {{{-w1}}} cause all IMAP input/output to be logged. {{{-d}}} adds timestamps to the log.

Process Tracing

If a Dovecot's process hangs or is just really slow, the best way to debug it is to see what it's really doing. Typically you'd be looking into imap or pop3 processes.

Linux

strace -tt -o log -p <process pid> 

BSDs, OS X

# enable process tracing
ktrace -f log -p <process pid>
# do whatever makes it break, then stop the process tracing:
ktrace -C
# and see what it's done:
kdump -T -f log 

Solaris

truss -d -r0 -w1 -o log -p <process pid> 

-r0 and -w1 cause all IMAP input/output to be logged. -d adds timestamps to the log.

None: Debugging/ProcessTracing (last edited 2009-03-15 22:35:08 by localhost)