Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

High CPU slapd process and Open Directory Certificate

Mac Mini Server with Mavericks 10.9.1 and Server 3.0.1

I've got very hgh CPU load (100%) on last 3 days.

Looking at process i saw slapd at 160-190 %CPU

I check Open Directory DB with sudo /usr/libexec/slapd -Tt and the result was: config file test succeded

I even try to recover DB with sudo db_recover -h /var/db/openldap/openldap-data/ and i got no errors

So, i looked at Certificates: i've got one GoDaddy certificate for that server and i'm using that certifcates for all services.

I tried to change certifcate for Open Directory only and i choose NONE (don't konw why, but i haven't any self signed certificate). After that SLAPD process stop immediately to consume high cpu and after few hours still very close to zero.

Could really be GoDaddy certificate the problem? I used that certificate with Open Directory for two years without any problem.

What do you think?

Posted on Jan 6, 2014 12:02 AM

Reply
7 replies

Jan 13, 2014 2:38 AM in response to greenvespa

I'm noticing the exact same issue here. The server running the OD master suffers from extreme lagging due to "slapd" higging the CPU.


We've got a Comodo Certificate but Open Directory Service will not accept it. So I made a self signed certificate and Open Directory accepted that. After some time CPU load starts to build up but as soon as I select "None" certificate for Open Directory Service the CPU load drops instantly.

It might well be that the "slapd" process is just being restarted upon certificate change and that the process suffers from a bug or memory leak wich is totally unrelated to certificates.


I don't feel like restarting "slapd" on an hourly basis. Where would I start asking Apples assistance for an issue like this?

Feb 21, 2014 7:58 AM in response to greenvespa

Bump, same issue here. I've tried all of the easy and extreme stuff, including a complete rebuild of the master and replica. I've even fiddled around with automatic restarts of the dirserv through cron, which seem to correct the CPU usage ~50% of the time.


My company recently moved to a pair of OS X server machines at our colo facility and I'm pretty shocked at how poorly supported and QA'ed this product really is. Microsoft, Novell, etc. would never stand for this.

Mar 4, 2014 12:57 AM in response to greenvespa

I found a bug that might be related. After trying to change a users password through terminal, the slapd process went sky high. To try this out for yourself enter the following command in terminal:

passwd


Then type the users old password followed by the new password twice. When hitting enter after the second password an error occurs in terminal. The slapd process starts going hayward (98% - 150%) right after that.

Attached a screenshot from right after this moment.


! Please note that in my case this user could not log into ssh or any other service anymore. Probably because the password save went wrong in combination with OD. To fix things, first quit the slapd process then go into Server App and change the user password by right-clicking on the user and select "Reset Password" from the contextual menu. Access to services was restored right away and slapd process load remained normal (<1%).


Can anyone confirm this?

User uploaded file

High CPU slapd process and Open Directory Certificate

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.