[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Memory Leak? (ITS#1463)
Full_Name: Steven Wilton
Version: 2.0.18
OS: Linux (Debian potato and woody)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.24.100.131)
I am having problems with slapd apparently leaking memory. On a debian potato
system, I have compiled my own version of openldap from version 2.0.11 to 2.0.18
(currently using 2.0.18), and every version has gradually grown until it has
used ~200Mb. When it reaches this size, it makes the system unusable, so I have
to kill slapd, and then start it again. It usually takes 3-7 days before the
process reaches this size.
I have also compiled against a debian woody system, which has a newer libc
(2.2.4 as opposed to 2.1.3) and other libraries. On the woody system, the
process grows quickly to ~160Mb, then only grows slowly, with the RSS growing to
~~25Mb. After about a week, we got the following messages in syslog, and slapd
stopped responding. restarting slapd fixed the problem:
Nov 26 09:16:12 sv1 slapd[1624]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:16:49 sv1 slapd[1622]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:16:49 sv1 slapd[1624]: ldbm: ==> unable to create/retrieve page 113
Nov 26 09:16:54 sv1 slapd[1703]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:16:55 sv1 slapd[1624]: ldbm: ==> PANIC: Input/output error
Nov 26 09:16:56 sv1 slapd[1265]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:16:56 sv1 slapd[1266]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:16:56 sv1 slapd[1748]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:16:57 sv1 slapd[1172]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory
Nov 26 09:17:01 sv1 slapd[1607]: ldbm: ==> Unable to allocate 4151 bytes from
mpool shared region: Cannot allocate memory