JJ Zhang

Q: opendirectoryd process has very high CPU

The opendirectoryd process has very high cpu.I have tries the method that Apple Support Doc says.But That is not the solution.

 

Screen Shot 2016-02-15 at 8.32.50 PM.png

 

I also try to close port 22. No effect.

 

I don't know why this problem occurs.The only one solution is restart computer.

MacBook Pro, OS X El Capitan (10.11.3)

Posted on Feb 15, 2016 5:03 AM

Close

Q: opendirectoryd process has very high CPU

  • All replies
  • Helpful answers

  • by JJ Zhang,

    JJ Zhang JJ Zhang Feb 15, 2016 5:04 AM in response to JJ Zhang
    Level 1 (0 points)
    Feb 15, 2016 5:04 AM in response to JJ Zhang

    I use MacBook Pro early 2011,OS X 10.11.3

  • by Linc Davis,

    Linc Davis Linc Davis Feb 15, 2016 11:25 AM in response to JJ Zhang
    Level 10 (207,936 points)
    Applications
    Feb 15, 2016 11:25 AM in response to JJ Zhang

    Please triple-click anywhere in the line below on this page to select it:

    /Library/Preferences/SystemConfiguration

    Right-click or control-click the line and select

              Services ▹ Open

    from the contextual menu.* A folder named "SystemConfiguration" should open. Move the contents of that folder to the Trash, except the file with this name:

              com.apple.Boot.plist

    Leave that file where it is.

    You may be prompted for your administrator login password. Restart the computer and test.

    If there's no change, restore each of the items you deleted from a backup, overwriting the one that may have been created in its place.

    If the problem is resolved, you may need to recreate some of your settings in the Network and Energy Saver preference panes.

    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

              Go ▹ Go to Folder...

    from the menu bar and paste into the box that opens by pressing command-V. You may not see what you pasted because a line break is included. Press return.

  • by JJ Zhang,

    JJ Zhang JJ Zhang Feb 19, 2016 3:29 AM in response to Linc Davis
    Level 1 (0 points)
    Feb 19, 2016 3:29 AM in response to Linc Davis

    Thanks Linc Davis.

     

    It looks like you let me reset the network and energy saver.I have tried but no effect.

     

    I think safari cause this problem.

     

    When I use safari to visit many picture webpage(probably large js webpage) such as http://www.taobao.com/,the safari will crash occasionally and opendirectoryd process will use many CPU.I don't know why this problem occurs.

  • by irishroogie,

    irishroogie irishroogie Sep 11, 2016 3:19 PM in response to JJ Zhang
    Level 1 (4 points)
    Sep 11, 2016 3:19 PM in response to JJ Zhang

    I also had this problem with OS X El Capitan 10.11.6, but deleting the files in SystemConfiguration didn't help (nor did the Apple link about Directory Utility help or the other thread about removing ssh access. opendirectoryd was only causing problems when my wifi was on and dropbox was running. It turned out to be a bunch of broken symlinks within Dropbox.

     

    This described the problem, but I found the solution difficult to follow:

    http://superuser.com/questions/350879/opendirectoryd-consumes-40-of-cpu

     

    Here has the solution:

    http://www.commandlinefu.com/commands/view/2369/find-broken-symlinks-and-delete- them

     

    In a nutshell, first check if you have broken symlinks by typing the command:

    find ~/Dropbox/ -type l -print0 | xargs -0 file | grep broken

    or more simply

    find -L ~/Dropbox -type l

     

    Then remove them one by one with this command:

    find -L ~/Dropbox -type l -exec rm -i {} +

     

    or all at once with this command:

    find -L ~/Dropbox -type l -delete