[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Slapd sometimes stucks: slapd shutdown: waiting for N operations/tasks to finish



Ð ÐÑÐ, 19/11/2013 Ð 11:11 -0800, Quanah Gibson-Mount ÐÐÑÐÑ:
> 
> --On November 19, 2013 at 8:20:57 PM +0200 ÐÐÐÐÑÐÐÐÐÐÐ 
> ÐÐÑÑÐÐ <casper@meteor.dp.ua> wrote:
> 
> > Hi,
> >
> > In our 1 Master - several slaves environment master slapd sometimes
> > stucks in such condition that it takes minutes to get replay to simple
> > queries with no visible resource consumption on both: the slapd process
> > itself and the linux it is running on.
> >
> > Restarting slapd helps for several days. Today I have not been able to
> > restart it without kill -9 because of:
> >
> > slapd shutdown: waiting for 12 operations/tasks to finish
> >
> > Waited 5 minutes with no luck, kill -9, start.
> >
> > slapd: 2.4.28
> > OS: Ubuntu 12.04.2 LTS
> >
> > I'm Ok with "try latest version", but it would be nice to have some
> > pointers (maybe bug in this version or error in configuration).
> 
> I would definitely say upgrade to 2.4.38.  One thing that particularly 
> stands out from the Changes file:
> 
> OpenLDAP 2.4.32 Release (2012/07/31)
>         Fixed slapd-bdb/hdb cache hang under high load (ITS#7222)
> 
> Generally, I would suggest getting a full gdb backtrace and looking at the 
> output of db_stat -C A and db_stat -c when it is in this state, if it 
> occurs again after running a current release.

Thanks.