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

Re: SLAPD_LISTEN increase

--On Tuesday, May 03, 2005 3:08 PM -0400 matthew sporleder <msporleder@gmail.com> wrote:

Running Solaris 8 and recent versions of openldap, I was experiencing
slapd crashes (graceful shutdowns) under heavy load.

After increasing SLAPD_LISTEN from 10 to 1000000, I found that slapd
would take over more of the cpu (never done that before) and could
handle even more load without crashing.  Is there any reason why this
is set to 10 by default, and is there any reason not to change it?

This seems related to an ITS I opened recently after my solaris server unexpectedly shut down gracefully (ITS#3677).

I unfortunately don't know the effect of increasing the number of listeners 6 powers, but I doubt it needs to be that excessive to fix your problem. Given that most OS's by default won't except more than 1,024 connections at once without some tweaking, you could likely get by with a smaller value (100? 1000?). I too am curious what the effects/pitfalls could be in increasing the default number of listeners.

Currently, there is a threads setting that lets you change the number of threads slapd uses. Perhaps there could be a 'listeners' parameter as well, if that is possible. I would still like to know more about the possible side effects.


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html