--On Tuesday, April 07, 2015 11:12 AM +0000 rolandsytt@yahoo.com wrote:
Full_Name: Roland S.tt Version: 2.4.40 OS: CentOS Linux release 7.0.1406 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (194.126.102.178)
Slapd memory usage increases endlessly. It's same in 2.4.39 (from CentOS 7 repository). During some simple activity (e.g ldapsearch) memory usage increases, but it's not decreases after the activity end.
You're likely seeing the numerous issues known to occur when using glibc as the default allocator. OpenLDAP is routinely profiled for memory leaks, and there are none currently known to exist. It is always strongly advised to use a different memory allocator with OpenLDAP, such as tcmalloc.
For example, I wrap slapd with:
quanah@zre-ldap001:~/p4/zimbra/main/ThirdParty/openldap/patches$ more ../../../ZimbraServer/src/libexec/zmslapd #!/bin/bash # # ***** BEGIN LICENSE BLOCK ***** # Zimbra Collaboration Suite Server # Copyright (C) 2007, 2008, 2009, 2010, 2012, 2013, 2014 Zimbra, Inc. # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software Foundation, # version 2 of the License. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; # without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the GNU General Public License for more details. # You should have received a copy of the GNU General Public License along with this program. # If not, see http://www.gnu.org/licenses/. # ***** END LICENSE BLOCK ***** #
ulimit -n 32768 ulimit -c unlimited ulimit -v unlimited export LD_PRELOAD=/opt/zimbra/tcmalloc/lib/libtcmalloc_minimal.so exec /opt/zimbra/openldap/sbin/slapd "$@"
As there is no actionable bug report here, this bug will be closed.
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration