The following issue has been RESOLVED. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=852 
====================================================================== 
Reported By:                only-victor
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   852
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
target:                      
Resolution:                 fixed
Fixed in Version:           2.2.17
====================================================================== 
Date Submitted:             14-Jul-10 15:14 CEST
Last Modified:              20-Jul-10 20:38 CEST
====================================================================== 
Summary:                    IMAPD uses 100% CPU if some file was attached to
mail
Description: 
If I send mail without attached files, then all work well. But if I attach
file which size about 2M or more, then dbmail-imapd uses 100% CPU and works
long time. But postgres uses 0-1% CPU and loads about 2-3 seconds. After I
accept message. I tried different mail clients and result the same.
I have only 2 mail accounts at postgres database and about 10-20 mail
messages.

====================================================================== 

---------------------------------------------------------------------- 
 (0003079) only-victor (reporter) - 14-Jul-10 21:21
 http://dbmail.org/mantis/view.php?id=852#c3079 
---------------------------------------------------------------------- 
I have debuged dbmail with trace level 4 and I found following:



Jul 14 22:13:04 mail-musson dbmail-imapd[3281]: Info:[serverchild]
serverchild.c,SetChildSigHandler(+152): signal handler placed

Jul 14 22:13:04 mail-musson dbmail-imapd[3230]: Message:[server]
pool.c,scoreboard_state(+584): Scoreboard state: children [4/100], spares
[3 (3 - 10)]

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[sort]
sort.c,sort_and_deliver(+55): Destination [t...@musson.ua] useridnr [6],
mailbox [(null)], source [0]

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[misc]
misc.c,find_bounded(+350): Found nothing between '+' and '@'

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[sort]
sort.c,sort_deliver_to_mailbox(+127): useridnr [6] mailbox [INBOX]

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[sort]
sort.c,sort_deliver_to_mailbox(+166): user [6] has right to deliver mail to
[INBOX]

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Message:[sort]
sort.c,sort_deliver_to_mailbox(+196): message id=1844, size=3922481 is
inserted

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[sort]
sort.c,sort_and_deliver(+102): Keep was not cancelled. Message will be
delivered by default.

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[delivery]
pipe.c,insert_messages(+625): successful sort_and_deliver for useridnr [6]

Jul 14 22:13:05 mail-musson dbmail-lmtpd[3255]: Info:[serverchild]
serverchild.c,PerformChildTask(+397): connection closed

#########################################################################
CPU LOAD 100%       from 22:13:05 till 22:13:30  when attached file 2.8M
#########################################################################

Jul 14 22:13:30 mail-musson dbmail-imapd[3241]: Info:[imap]
imap4.c,IMAPClientHandler(+302): Executing command append...

Jul 14 22:13:32 mail-musson dbmail-imapd[3241]: Message:[db]
db.c,db_imap_append_msg(+2618): message id=1846 is inserted
Jul 14 22:13:32 mail-musson dbmail-imapd[3241]: Info:[imap]
imap4.c,IMAPClientHandler(+321): Finished command append [0]

Jul 14 22:13:32 mail-musson dbmail-imapd[3241]: Info:[imap]
imap4.c,IMAPClientHandler(+191): COMMAND: [A004 LOGOUT]

Jul 14 22:13:32 mail-musson dbmail-imapd[3241]: Info:[imap]
imap4.c,IMAPClientHandler(+302): Executing command logout...

Jul 14 22:13:32 mail-musson dbmail-imapd[3241]: Message:[imap]
imapcommands.c,_ic_logout(+126): user (id:6) logging out @ [2010-07-14
22:13:32] 

---------------------------------------------------------------------- 
 (0003082) only-victor (reporter) - 20-Jul-10 15:50
 http://dbmail.org/mantis/view.php?id=852#c3082 
---------------------------------------------------------------------- 
This problem is fixed by Paul J Stevens. This bug may be closed.
Thank you Paul J Stevens very much and thank dbmail support. 

---------------------------------------------------------------------- 
 (0003083) paul (administrator) - 20-Jul-10 20:38
 http://dbmail.org/mantis/view.php?id=852#c3083 
---------------------------------------------------------------------- 
so this problem was indeed in imap-append.
 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
14-Jul-10 15:14  only-victor    New Issue                                    
14-Jul-10 15:14  only-victor    File Added: dbmail.report                    
14-Jul-10 21:21  only-victor    Note Added: 0003079                          
20-Jul-10 15:50  only-victor    Note Added: 0003082                          
20-Jul-10 20:38  paul           Note Added: 0003083                          
20-Jul-10 20:38  paul           Assigned To               => paul            
20-Jul-10 20:38  paul           Status                   new => resolved     
20-Jul-10 20:38  paul           Resolution               open => fixed       
20-Jul-10 20:38  paul           Fixed in Version          => 2.2.17          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to