Date: Fri, 20 Oct 2006 15:45:59 +0200 From: "Marcelo Caparroz" <marcelo.caparroz (at mark) gmail.com> Subject: [coba-e:07653] Re: HELP - excessive dovecot-auth To: coba-e (at mark) bluequartz.org Message-Id: <b0dc50f60610200645s516e44a7w82017c748caa136b (at mark) mail.gmail.com> In-Reply-To: <002a01c6f385$9adafa80$6d0da8c0 (at mark) axsdom.local> References: <b0dc50f60610190058v117a0d2fye0e852e75bc0c9b8 (at mark) mail.gmail.com> <002a01c6f385$9adafa80$6d0da8c0 (at mark) axsdom.local> X-Mail-Count: 07653Script to control the dovecot processes// The comments are in spanish if someone have some doubt, tell me.#!/bin/bash# Parametros (cantidad de dovecot en ejecucion,minino de dovecot para volve=ra arrancar el servicio)# comprovar.sh 25 4while (sleep 3)do if test `ps -ef | grep dovecot | wc | tr -s ' ' | cut -d ' ' -f2`-gt $1 then echo "Dovecot se esta ejecutando `ps -ef | grep dovecot | w=c| tr -s ' ' | cut -d ' ' -f2` veces"; #b nos dira si el servicio esta arrancado. if test `service dovecot status | grep running | wc | tr -s' ' | cut -d ' ' -f2` -eq 1 then service dovecot stop `php mail.php` #paramos servicio i ponemos b = false fi fi if test `ps -ef | grep dovecot | wc | tr -s ' ' | cut -d ' ' -f2`-lt $2 then echo "Todo bien, servicio arrancado."; if test `service dovecot status | grep stopped | wc | tr -s' ' | cut -d ' ' -f2` -eq 1 then service dovecot start `php mailok.php` #Arrancamos el servicio i ponemos b =true fi fidone-------------------------------------I hope that it can help someone.2006/10/19, Christian Lappin <clappin (at mark) axsne.com>:>> Marcelo -->> Could I PLEASE get a copy of that script you run? It would be a big help> until the problem gets fixed. I had to stop xinetd and dovcot then using =ps> -aux I watched until the process went down to normal. I started back up =the> services and all is fine. I have my xinetd at 600 which covers the users =and> the other services I would think?>> Any other help would be appreciated on this.>>>> ------------------------------> *From:* Marcelo Caparroz [mailto:marcelo.caparroz (at mark) gmail.com]> *Sent:* Thursday, October 19, 2006 3:59 AM> *To:* coba-e (at mark) bluequartz.org> *Subject:* [coba-e:07619] Re: HELP - excessive dovecot-auth>> I have the same problem.>> The temporal fix is stop the dovecot service or the xinetd if it is> running under xinetd. I have made a script that check if the number of> dovecot processes are above 28 so, they stop the service, keep checking a=nd> when the service is below 9, start the service again. (DO NOT kill the> processes or a reboot will be needed)>> the service stops about 50 times at day, due my cpu load and number of> users.>> The bad news guys is that it has no solution!!!!>> I ve been seeking for months and nothing in internet is really usefull fo=r> that. (if i am wrong, please tell me).>> After many and many analysis I ' ve figured out that itīs associated wi=th> the low capacity of BQ to process the users authentification and when the=re> are many request at the same time, it just stop the authentification proc=ess> and the dovecot go mad!>> I have made many test and observations, if someone want to talk about,> mail me, or skype me.>> Tks>> 2006/10/18, Christian Lappin <clappin (at mark) axsne.com >:> >> >> >> > Gerald -> >> > Yes in fact the server has been rebooted several times due to the fact> > it> > will hang once the dovecot-auth sessions start to pile up. It seems lik=e> > I> > am missing something in a config, but I do not know what or where. Like> > I> > noted the CPU does not go up. I end up with pages of dovecot-auth> > processes> > that are stale or in a Sleeping state. Not Zombie, but "S" It seems to> > me> > they are not clearing on their own since they are not current.> >> >> > -----Original Message-----> > From: Gerald Waugh [mailto: gwaugh (at mark) frontstreetnetworks.com]> > Sent: Wednesday, October 18, 2006 3:34 PM> > To: coba-e (at mark) bluequartz.org> > Subject: [coba-e:07612] Re: HELP - excessive dovecot-auth> >> > >> > > I tried increasing xinitd to 600 but this has not helped.> > >> > > Xinetd config below:> > >> > > [root (at mark) marmailbq01 ~]# cat /etc/xinetd.conf # # Simple configuration> > > file for xinetd # # Some defaults, and include /etc/xinetd.d/> > >> > > defaults> > > {> > > instances = 600> > > log_type = SYSLOG authpriv> > > log_on_success = HOST PID> > > log_on_failure = HOST> > > cps = 25 30> > > }> > >> > > includedir /etc/xinetd.d> > >> > Did you?> > /etc/rc.d/init.d/xinetd restart> >> > Gerald> >> >> >> >> >>7653_2.html (attatchment)(tag is disabled)