slapd crashing very frequently under runsv on FreeBSD
Hi,
OpenLDAP (slapd) is crashing very frequently under runsv (hundreds of times per day, usually when it gets a burst of queries). To be clear, it starts and functions properly for a while and then crashes and restarts, etc.
Details:
OS: FreeBSD 10.0-RELEASE-p1 AMD64
Runit: runit-2.1.1 compiled from source (/package/admin/runit-2.1.1)
OpenLDAP: openldap-sasl-server-2.4.39_1 compiled from ports
Runit script:
#!/bin/sh
exec 2>&1
echo "*** Starting ldap service ..."
exec chpst -e ./env sh -c ‘
exec slapd \
-d $LOGLEVEL \
-u $USER \
-g $GROUP \
-F slapd.d \
-h "$URLLIST"
'
Dmesg logs (hunreds per day):
pid 64462 (slapd), uid 2002: exited on signal 11
pid 64514 (slapd), uid 2002: exited on signal 11
pid 64564 (slapd), uid 2002: exited on signal 11
If I run slapd directly from a terminal with the following command, it never crashes - I mean it will run nonstop for days. The option values are the same as in the env dir as referenced in the above run script.
slapd -d 256 -u ldap -g ldap -F slapd.d -h "ldap:/// ldaps:/// ldapi:///“
# ulimit -a
cpu time (seconds, -t) unlimited
file size (512-blocks, -f) unlimited
data seg size (kbytes, -d) 33554432
stack size (kbytes, -s) 524288
core file size (512-blocks, -c) unlimited
max memory size (kbytes, -m) unlimited
locked memory (kbytes, -l) unlimited
max user processes (-u) 7592
open files (-n) 87993
virtual mem size (kbytes, -v) unlimited
swap limit (kbytes, -w) unlimited
sbsize (bytes, -b) unlimited
pseudo-terminals (-p) unlimited
I would appreciate any advice with this situation. I am running everything under runsv for years now and have never had a single problem until this one.
Thanks,
Mike
Received on Thu Apr 24 2014 - 11:01:12 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:18 UTC