A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=957 
====================================================================== 
Reported By:                gcth
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   957
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     confirmed
target:                      
====================================================================== 
Date Submitted:             27-Jan-12 11:07 CET
Last Modified:              15-May-12 19:46 CEST
====================================================================== 
Summary:                    imapd leaks sockets
Description: 
I'm currently using latest git dbmail with imap only, and I've noticed that
it refuses connections after few hours of working. lsof shows lots of open
sockets:

dbmail-im 24466     dbmail 1352u     sock                0,6          0t0 
  1917799 can't identify protocol
dbmail-im 24466     dbmail 1353u     sock                0,6          0t0 
  1917800 can't identify protocol
dbmail-im 24466     dbmail 1354u     sock                0,6          0t0 
  1917801 can't identify protocol
dbmail-im 24466     dbmail 1355u     sock                0,6          0t0 
  1917802 can't identify protocol
dbmail-im 24466     dbmail 1356u     sock                0,6          0t0 
  1917803 can't identify protocol
dbmail-im 24466     dbmail 1357u     sock                0,6          0t0 
  1917804 can't identify protocol
dbmail-im 24466     dbmail 1358u     sock                0,6          0t0 
  1917805 can't identify protocol

they are increasing in time leading to saturation of nofiles ulimit. This
problem applies to imapd, I could not reproduce this problem with pop3.
Typical clients connects with latest thundderbird, mostly from local LAN.
Increasing ulimit -n to 8192 allows enough leaks to last for whole day, so
now as a workaround I restart dbmail every night. I'm attaching munin graph
for:
lsof -ln -u dbmail | grep ^dbmail-im   | fgrep sock\  -c
during normal work hours.
====================================================================== 

---------------------------------------------------------------------- 
 (0003392) paul (administrator) - 27-Jan-12 16:35
 http://www.dbmail.org/mantis/view.php?id=957#c3392 
---------------------------------------------------------------------- 
I can confirm this. Looks like there is a thread-race in the imap code.

 

---------------------------------------------------------------------- 
 (0003429) gcth (reporter) - 03-Apr-12 17:07
 http://www.dbmail.org/mantis/view.php?id=957#c3429 
---------------------------------------------------------------------- 
In current master this bug is still present.
Any chances for a fix? What else do you need to debug this? 

---------------------------------------------------------------------- 
 (0003449) vampyre (reporter) - 15-May-12 19:46
 http://www.dbmail.org/mantis/view.php?id=957#c3449 
---------------------------------------------------------------------- 
Hello Paul,

Could you please share your assumptions if you have some, as this is quite
major issue and it is important to get it fixed as fast as possible.

Thank you. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
27-Jan-12 11:07  gcth           New Issue                                    
27-Jan-12 11:07  gcth           File Added: sockets.png                      
27-Jan-12 16:35  paul           Note Added: 0003392                          
27-Jan-12 16:35  paul           Assigned To               => paul            
27-Jan-12 16:35  paul           Status                   new => confirmed    
03-Apr-12 17:07  gcth           Note Added: 0003429                          
15-May-12 19:46  vampyre        Note Added: 0003449                          
======================================================================

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

Reply via email to