Re: [Dovecot] 100% CPU utilisation
On 6.9.2004, at 03:28, Zoong Pham wrote:
Dovecot (0.9.11) consumes 100% CPU utilisation when accessing (either pop or imap) one of my mailboxes. It doesn't happen with other mailboxes. The mailbox has about 500 mails while others have many more. They are all in mbox format.
Probably because one of the lines in it is larger then 4096 bytes? Header parser doesn't really like that. I should get that fixed in 1.0-tests..
On Mon, Sep 06, 2004 at 11:34:03AM +0300, Timo Sirainen wrote:
On 6.9.2004, at 03:28, Zoong Pham wrote:
Dovecot (0.9.11) consumes 100% CPU utilisation when accessing (either pop or imap) one of my mailboxes. It doesn't happen with other mailboxes. The mailbox has about 500 mails while others have many more. They are all in mbox format.
Probably because one of the lines in it is larger then 4096 bytes? Header parser doesn't really like that. I should get that fixed in 1.0-tests..
Are you talking physical line length, or actual header line length (including continuation lines)? I guess strictly speaking you aren't supposed to see a physical line length of 4096 bytes, but even so, that's a low limit.
-mm-
(Saw a message the other day with a Cc: header over 93,000 characters long. Yeah, it was spam, but it was still there..)
On 6.9.2004, at 17:44, Mark E. Mallett wrote:
Probably because one of the lines in it is larger then 4096 bytes? Header parser doesn't really like that. I should get that fixed in 1.0-tests..
Are you talking physical line length, or actual header line length (including continuation lines)? I guess strictly speaking you aren't supposed to see a physical line length of 4096 bytes, but even so, that's a low limit.
When a physical line is larger than what fits into input buffer it breaks. I think most MTAs don't allow lines that long, so this isn't too much of a problem.
Anyway, here's finally a fix:
http://dovecot.org/patches/dovecot-large-header-fix.diff
Note that with mboxes those large header lines seem to be deleted while mbox is being rewritten. With 1.0-tests this doesn't happen.
On Tue, Sep 07, 2004 at 05:37:52PM +0300, Timo Sirainen wrote:
When a physical line is larger than what fits into input buffer it breaks. I think most MTAs don't allow lines that long, so this isn't too much of a problem.
Postfix by default breaks lines at 990 octets. It does so in a MIME-compatible way, although some MUAs can't cope even with that (e.g. Apple's Mail).
J
-- Joshua Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109
participants (3)
-
Joshua Goodall
-
Mark E. Mallett
-
Timo Sirainen