After a few days of mostly test load, top reports that the slapd process (OpenLDAP server) is huge: 439 ldap 20 0 149M 6128K kserel 0:07 0.00% 0.00% slapd I know that the actually used memory size is the 6MB figure above, but why does it allocate almost 150MB? Is it normal?
Hi. On Thu, Nov 25, 2004 at 05:03:48PM +0100, Ivan Voras wrote:> After a few days of mostly test load, top reports that the slapd process > (OpenLDAP server) is huge: > > 439 ldap 20 0 149M 6128K kserel 0:07 0.00% 0.00% slapd > > I know that the actually used memory size is the 6MB figure above, but > why does it allocate almost 150MB? Is it normal?I observed the same behaviour, especially if a lot of data are added. The same behaviour was seen on FreeBSD/i386 as well as on Solaris/sun4u - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! |
Ivan Voras wrote:> After a few days of mostly test load, top reports that the slapd process > (OpenLDAP server) is huge: > > 439 ldap 20 0 149M 6128K kserel 0:07 0.00% 0.00% slapd > > I know that the actually used memory size is the 6MB figure above, but > why does it allocate almost 150MB? Is it normal?This sounds like a classic example of a memory leak. -- -Chuck
On Sun, Nov 28, 2004 at 07:38:06PM -0500, Chuck Swiger wrote:> Ivan Voras wrote: > >After a few days of mostly test load, top reports that the slapd process > >(OpenLDAP server) is huge: > > > >439 ldap 20 0 149M 6128K kserel 0:07 0.00% 0.00% slapd > > > >I know that the actually used memory size is the 6MB figure above, but > >why does it allocate almost 150MB? Is it normal? > > This sounds like a classic example of a memory leak.Had the same before I moved to openldap 2.2 Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
Edwin Groothuis wrote:> On Sun, Nov 28, 2004 at 07:38:06PM -0500, Chuck Swiger wrote:>>>439 ldap 20 0 149M 6128K kserel 0:07 0.00% 0.00% slapd >>> >>>I know that the actually used memory size is the 6MB figure above, but >>>why does it allocate almost 150MB? Is it normal? >> >>This sounds like a classic example of a memory leak. > > > Had the same before I moved to openldap 2.2I should have said - this *is* openldap 2.2, from a week ago, on 5-stable.
Running 2.2.18, mine gets up to 600+ MB before crashing with an "unable to ch_malloc" error. Have had this with several of the 2.2.x releases, went back to 2.2.17 and it's running fine again. I think this is more of something for the openldap-users list. -Mike On Thu, 25 Nov 2004, Ivan Voras wrote:> After a few days of mostly test load, top reports that the slapd process > (OpenLDAP server) is huge: > > 439 ldap 20 0 149M 6128K kserel 0:07 0.00% 0.00% slapd > > I know that the actually used memory size is the 6MB figure above, but why > does it allocate almost 150MB? Is it normal? > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >