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

Re: Newbie: why so many slapd daemon processes?



"David Vu" wrote...:

> Hi,
> 
> I just compiled openldap-stable-20011102.tgz on a Red Hat 7.1 box
> and although it all seems to run fine, it appears that the original
> slapd spawn 4 more copies of itself:
> 
> ldap     21808  0.0  1.1 11948 2960 ?        S    19:23   0:00
> /usr/sbin/slapd -u ldap -h ldap:/// ldaps:///
> ldap     21809  0.0  1.1 11948 2960 ?        S    19:23   0:00
> /usr/sbin/slapd -u ldap -h ldap:/// ldaps:///
> ldap     21810  0.0  1.1 11948 2960 ?        S    19:23   0:00
> /usr/sbin/slapd -u ldap -h ldap:/// ldaps:///
> ldap     21813  0.0  1.1 11948 2960 ?        S    19:23   0:00
> /usr/sbin/slapd -u ldap -h ldap:/// ldaps:///
> ldap     21814  0.0  1.1 11948 2960 ?        S    19:23   0:00
> /usr/sbin/slapd -u ldap -h ldap:/// ldaps:///
> 
> Same for slurpd
[ .. ]
> Now the normal RH openldap-2.0.11-8.rpm for Red Hat only runs one
> process for each of the slapd and slurpd daemons.
> 
> My question is is this normal with my compiled daemon spawning a
> few copies of itself?  Is it bad/good compared with the way Red Hat
> builds their version?

it's linux. actually there aren't 5 processes but threads. but linux 
prefers to display them as processes and even assigns a PID to them.. 
don't mind.
and i guess the openldap-2.0.11-8.rpm has just been compiled single-
threaded. (due to what reason ever, i can't imagine one on linux..)

hth,
daniel