From Christophe.Dumonet at ifma.fr Wed Nov 19 06:21:26 2008 From: Christophe.Dumonet at ifma.fr (Christophe Dumonet) Date: Wed, 19 Nov 2008 12:21:26 +0100 Subject: [imapproxy-info] IMAPPROXY - cache_size x 2 or x 4 or not ?? Message-ID: <4923F6B6.6080604@ifma.fr> Hello, Some of my users are having problems to connect to IMAP especially when many users are connected ( more than 50) So I decide to do a rrdtool graph for the pimpstat log, which is join in this mail ( or here : http://www.ifma.fr/TEMP/rddImapProxy-LAST-24H.png ) On this graph, The blue graph ( ServerCon) is the CACHED SERVER CONNECTIONS of pimpstat output. The red graph (ClientCon) is the CLIENT CONNECTIONS of pimpstat output. the yellow one ( inusecon) is the ACTIVE SERVER CONNECTIONS. If you take a look at this graph, You can see, when it is "tuesday 2 PM" ( in french on the graph it is "Mar 14h"), imapproxy seems to stop caching connections at approximatively 60 !!!! This time correspond with a high load for the server ( app 60 simultaneous connections) Actually, at this time "tuesday 2 PM", The CACHED SERVER CONNECTIONS graph are high, and strangely CLIENT CONNECTIONS graph too, while it deals with 0 in other time. And the output of /var/log/mail.info for proximap at this time was very strange : ( these errors appear only for increased utilization) Nov 18 13:36:16 pcdmz01 in.imapproxyd[29911]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:36:16 pcdmz01 in.imapproxyd[29917]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:36:17 pcdmz01 in.imapproxyd[29937]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:36:28 pcdmz01 in.imapproxyd[29911]: Raw_Proxy(): Failed to read line from client on socket 82 Nov 18 13:36:29 pcdmz01 in.imapproxyd[29917]: Raw_Proxy(): Failed to read line from client on socket 84 Nov 18 13:41:00 pcdmz01 in.imapproxyd[30661]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:00 pcdmz01 in.imapproxyd[30662]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:01 pcdmz01 in.imapproxyd[30668]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:02 pcdmz01 in.imapproxyd[30689]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:02 pcdmz01 in.imapproxyd[30695]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:02 pcdmz01 in.imapproxyd[30703]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:03 pcdmz01 in.imapproxyd[30710]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:03 pcdmz01 in.imapproxyd[30719]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:04 pcdmz01 in.imapproxyd[30721]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:08 pcdmz01 in.imapproxyd[30731]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:08 pcdmz01 in.imapproxyd[30688]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:09 pcdmz01 in.imapproxyd[30692]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:10 pcdmz01 in.imapproxyd[30724]: IMAP_Line_Read(): connection closed prematurely. Nov 18 13:41:13 pcdmz01 in.imapproxyd[30661]: Raw_Proxy(): Failed to read line from client on socket 24 Nov 18 13:41:14 pcdmz01 in.imapproxyd[30662]: Raw_Proxy(): Failed to read line from client on socket 80 Nov 18 13:41:15 pcdmz01 in.imapproxyd[30668]: Raw_Proxy(): Failed to read line from client on socket 34 Nov 18 13:41:15 pcdmz01 in.imapproxyd[30689]: Raw_Proxy(): Failed to read line from client on socket 82 Nov 18 13:41:18 pcdmz01 in.imapproxyd[30695]: Raw_Proxy(): Failed to read line from client on socket 86 Nov 18 13:41:18 pcdmz01 in.imapproxyd[30703]: Raw_Proxy(): Failed to read line from client on socket 9 Nov 18 13:41:18 pcdmz01 in.imapproxyd[30710]: Raw_Proxy(): Failed to read line from client on socket 87 Nov 18 13:41:19 pcdmz01 in.imapproxyd[30719]: Raw_Proxy(): Failed to read line from client on socket 89 Nov 18 13:41:19 pcdmz01 in.imapproxyd[30721]: Raw_Proxy(): Failed to read line from client on socket 90 Nov 18 13:41:21 pcdmz01 in.imapproxyd[30731]: Raw_Proxy(): Failed to read line from client on socket 35 Nov 18 13:41:22 pcdmz01 in.imapproxyd[30688]: Raw_Proxy(): Failed to read line from client on socket 81 Nov 18 13:41:24 pcdmz01 in.imapproxyd[30692]: Raw_Proxy(): Failed to read line from client on socket 84 Nov 18 13:41:28 pcdmz01 in.imapproxyd[30724]: Raw_Proxy(): Failed to read line from client on socket 40 My courier-imap parameters are : MAXDAEMONS=250 & MAXPERIP=500 ( I assume it is very high but all courier logs are OK) My imapproxy configuration is : server_hostname localhost cache_size 12088 listen_port 1430 server_port 143 cache_expiration_time 300 proc_username nobody proc_groupname nogroup stat_filename /var/run/pimpstats protocol_log_filename /var/log/imapproxy_protocol.log syslog_facility LOG_MAIL send_tcp_keepalives no enable_select_cache no foreground_mode no force_tls no chroot_directory /var/lib/imapproxy/chroot enable_admin_commands no --> So what can I do ? X2 X 4 for the cache_size parameters of imapproxy configuration ? Or Where can be the problem ? Thank for your help! Christophe Dumonet, From france. -- ---------------------------------------------------- Christophe Dumonet Centre de Ressources Informatiques Institut Francais de Mecanique Avancee (IFMA) Campus des Cezeaux BP 265 63175 AUBIERE Cedex Tel : +33 - 4.73.28.80.64 Fax : +33 - 4.73.28.81.00 Mail : Christophe.Dumonet at ifma.fr ---------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: rddImapProxy-LAST-24H.png Type: image/png Size: 47472 bytes Desc: not available Url : http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20081119/bbac9d23/attachment-0001.png