srobert

Q: discoveryd process uses 100% CPU - Safari Can't find the server

Hello

 

Since upgrading to Yosemite, I lose connection to the internet 2 or 3 times a day. (Outlook goes offline at the same time)

 

This is with a wired connection. (Wi-Fi is turned off)

 

Safari gives me the "Safari Can't Find the Server" message.

 

Restarting the computer solves the issue temporarily.

 

While I'm unable to connect to the internet, Activity Monitor shows a process named "discoveryd" that uses 100% CPU.

 

Force quitting this process gives me back access to the internet instantly. Unfortunately, I suffered a kernel panic (auto restart) a few minutes after force quitting discoveryd. I'm not 100% sure those 2 are related but it would be an odd coincidence as I never experienced had a single kernel on that system. Haven't tried force quitting that process since.

 

I'm using this iMac in a work environment. (Connected to a windows file server and exchange)

 

This issue has been happening 2-3 times a day since the day I upgraded to Yosemite.

 

Any pointers on what could fix this issue ?

 

Thanks

 


iMac, OS X Yosemite (10.10), iMac (27-inch, Mid 2010)

Posted on Nov 10, 2014 1:05 PM

Close

Q: discoveryd process uses 100% CPU - Safari Can't find the server

  • All replies
  • Helpful answers

first Previous Page 3 of 5 last Next
  • by mbuser,

    mbuser mbuser Nov 26, 2014 12:35 AM in response to Linc Davis
    Level 1 (0 points)
    Nov 26, 2014 12:35 AM in response to Linc Davis

    I have the exact same issue : several teams a day, discoverd tops 100% CPU and network does not work anymore, being by wifi or wire.

    It's a shame !

  • by Carl Jonard,

    Carl Jonard Carl Jonard Dec 2, 2014 11:55 AM in response to rwross1776
    Level 1 (25 points)
    Dec 2, 2014 11:55 AM in response to rwross1776

    The memory doesn't seem unusual when it hangs (see attached).

     

    I tried sampling the process, but it never finished.Screen Shot 2014-12-02 at 1.46.12 PM.pngScreen Shot 2014-12-02 at 1.46.44 PM.pngScreen Shot 2014-12-02 at 1.50.07 PM.pngScreen Shot 2014-12-02 at 1.50.09 PM.pngScreen Shot 2014-12-02 at 1.51.12 PM.png

  • by rwross1776,

    rwross1776 rwross1776 Dec 2, 2014 2:51 PM in response to Carl Jonard
    Level 1 (19 points)
    Dec 2, 2014 2:51 PM in response to Carl Jonard

    Odd...everytime my CPU usage pegged that high, memory use was also high.  However, the reverse is not true.  Over time, memory usage grows even past 100 MB, but that doesn't always create a CPU issue.  I think this latter behavior is somewhat normal for a system that's been up for 3+ days, just like Kernel task growing to 1.5 GB+

     

    That said, here's a suggestion that you probably won't like much.

     

    Remove all your login items or create a new user with no login items.

     

    Reboot and then only use native Apple Apps for 24 hours and see if the issue resurfaces.  I think there may be something amiss in an API that Apple may have deprecated w/o properly informing devs or has shifted calls to the old API to a new one that has issues.

     

    In addition to native apps, you could certainly use ones that don't require network connectivity to function...the point here is to try and eliminate all/most 3rd party calls to the discoveryd process.

  • by thepianoman2,

    thepianoman2 thepianoman2 Dec 2, 2014 2:57 PM in response to srobert
    Level 1 (5 points)
    Dec 2, 2014 2:57 PM in response to srobert

    This is a great workaround until they actually solve the problem.

    Here's what I've been doing and I've had no problems since.

     

    Open terminal.

    Edit your cron by typing: "crontab -e"

    type "i" to insert, then paste the following:

    * * * * * sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist;sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist


    type "esc" then "wq" then enter.


    Your new crontab will be saved.  What this does is every minute relaunch the discoveryd process so that it has no time to grow out of control. It has no adversed impacts on connectivity as i've been connected to a corporate vpn the entire time.

  • by joedjjjjj,

    joedjjjjj joedjjjjj Dec 4, 2014 12:58 AM in response to srobert
    Level 1 (0 points)
    Dec 4, 2014 12:58 AM in response to srobert

    Are you using Adium?

     

    It seems that using Bonjour in Adium triggers this issue for some.  It's being tracked here:

     

    https://trac.adium.im/ticket/16827

  • by Mike from Berko,

    Mike from Berko Mike from Berko Dec 4, 2014 2:20 AM in response to joedjjjjj
    Level 1 (0 points)
    Dec 4, 2014 2:20 AM in response to joedjjjjj

    After weeks of running Yosemite on an iMac and MacBook Pro, without any network issues, this happened to my iMac for the first time about half an hour after I enabled screen sharing.  (I wanted to try out a VNC client.)  Like everyone else, several times a day discoveryd went rogue, ate up all the CPU and stopped discovering things. It didn't seem likely that screen sharing was the reason, so I spent several days messing around with network configurations, deleting plist files, and all the other things suggested in this and other similar forums.  Nothing helped.

     

    Then I decided to turn off screen sharing, and lo! the problem went away again.

     

    I'm not saying that's going to be the cause for everyone.  Network issues can be complex, and there's certainly a nasty bug in discoveryd, but it was certainly what triggered it in my case.  Just thought I'd mention it in case it helps someone.

  • by Carl Jonard,

    Carl Jonard Carl Jonard Dec 4, 2014 7:07 AM in response to joedjjjjj
    Level 1 (25 points)
    Dec 4, 2014 7:07 AM in response to joedjjjjj

    No, I don't use Adium.

  • by Carl Jonard,

    Carl Jonard Carl Jonard Dec 4, 2014 7:09 AM in response to Mike from Berko
    Level 1 (25 points)
    Dec 4, 2014 7:09 AM in response to Mike from Berko

    I don't have screen sharing turned on either.

  • by srobert,

    srobert srobert Dec 12, 2014 12:21 PM in response to srobert
    Level 1 (25 points)
    Dec 12, 2014 12:21 PM in response to srobert

    I might have inadvertently fixed my issue. (Fingers crossed)

     

    I can't confirm the issue permanently gone but so far discoveryd hasn't hung up for more than 24 hours. (The issue usually happened every 2-3 hour).

     

    I had what I thought was an unrelated problem: The first tab of my Creative Cloud app (Home) only showed a blue spinning wheel. I found some instructions on the Adobe Community forums on how to fix such an issue.

     

    3. Re: Creative Cloud Desktop App stuck on blue spinning wheel after update.

     

    Michaelkaye Jul 2, 2014 6:31 AM (in response to raphaelP)

     

     

     

    This worked for me:

     

     

     

    Open Finder, click on Go > Go to Folder. Type in ~/library and hit enter.

    Open Application Support/Adobe folder and rename OOBE folder to OOBEold.

    Click on Apple icon on the top left, select System Preferences

    Choose the network that is currently connected to internet that can be Ethernet or

    Airport(Wireless). Click on Advanced button and click Proxies Tab.

    Under 'Select a Proxy server to Configure' Uncheck all the proxy check boxes, then uncheck 'Use Passive FTP Mode (PASV)'.

     

    Hope this helps someone else.

     

     

     

    This indeed fixed my creative cloud issue but it might have also fixed my discoveryd issue.

     

    This might still be a coincidence but I thought I'd share in case somebody would like to try.

     

    Anybody knows exactly what unchecking "Use Passive FTP Mode (PASV)" does? Could this cause some other apps to stop working or could it be a security issue?

     

    I'll make sure to update this post if I lose my connection again.

  • by srobert,

    srobert srobert Dec 15, 2014 7:13 AM in response to srobert
    Level 1 (25 points)
    Dec 15, 2014 7:13 AM in response to srobert

    False alarm.

     

    The discoveryd issue is back. The steps taken in my previous post did not solve the issue.

     

    I did manage to go almost 48 hours without it happening this time around.

  • by Carl Jonard,

    Carl Jonard Carl Jonard Dec 15, 2014 1:18 PM in response to thepianoman2
    Level 1 (25 points)
    Dec 15, 2014 1:18 PM in response to thepianoman2

    thepianoman2 wrote:

     

    Open terminal.

    Edit your cron by typing: "crontab -e"

    type "i" to insert, then paste the following:

    * * * * * sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist;sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist


    type "esc" then "wq" then enter.

     

    Thanks for the tip. Pressing escape and "wq" didn't work for me, but I downloaded Cronnix and added the cron job that way. I modified it to run once every hour instead of every minute. This is a workaround that shouldn't be necessary, but I expect it will work.

     

    Screen Shot 2014-12-15 at 3.17.16 PM.png

  • by thepianoman2,

    thepianoman2 thepianoman2 Dec 15, 2014 1:24 PM in response to Carl Jonard
    Level 1 (5 points)
    Dec 15, 2014 1:24 PM in response to Carl Jonard

    Ahh, thanks, I missed type ":" after escape, before you type "wq".

  • by baxyp,

    baxyp baxyp Dec 17, 2014 10:51 AM in response to srobert
    Level 1 (0 points)
    Dec 17, 2014 10:51 AM in response to srobert

    Try making your computer's name shorter (System Preferences->Sharing->Computer Name). I had similar problem with MOTU's CueMix FX. Whenever I started it, the discoveryd went from 0% to 100% CPU. Abbreviating "MacBook Pro" to "MBP" helped.

  • by Carl Jonard,

    Carl Jonard Carl Jonard Dec 19, 2014 9:46 AM in response to baxyp
    Level 1 (25 points)
    Dec 19, 2014 9:46 AM in response to baxyp

    This did not work for me. I shortened my computer's name, but the issue came back.

  • by mbuser,

    mbuser mbuser Dec 31, 2014 12:45 AM in response to Carl Jonard
    Level 1 (0 points)
    Dec 31, 2014 12:45 AM in response to Carl Jonard

    Still now real fix from Apple ? HEY HO APPLE GUYS, WAKE UP, THE NETWORK IS BROKEN IN YOUR OS !!! This is an intolerable issue.

    A lot of people are wondering "is it because I run this or that software ?" but there is no specific software involved, your softwares are just trying to use the network resources from the OS and it is broken since Yosemite...

first Previous Page 3 of 5 last Next