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

Previous Page 2 of 5 last Next
  • by Linc Davis,

    Linc Davis Linc Davis Nov 12, 2014 1:56 PM in response to srobert
    Level 10 (208,037 points)
    Applications
    Nov 12, 2014 1:56 PM in response to srobert
  • by srobert,

    srobert srobert Nov 13, 2014 11:19 AM in response to thepianoman2
    Level 1 (25 points)
    Nov 13, 2014 11:19 AM in response to thepianoman2

    Thanks nonetheless. It helps me get back to work quickly (without restarting) when the problem happens. It still does, 2-3 times a day.

  • by srobert,

    srobert srobert Nov 13, 2014 11:20 AM in response to Linc Davis
    Level 1 (25 points)
    Nov 13, 2014 11:20 AM in response to Linc Davis

    Just reset PRAM. As usual, I'll report back my results shortly.

  • by mrwahed,Helpful

    mrwahed mrwahed Nov 13, 2014 8:15 PM in response to srobert
    Level 1 (5 points)
    Nov 13, 2014 8:15 PM in response to srobert

    Here is permanent fix I found on another site osxdaily.com

     

    1: Remove Network Configuration & Preference Files

    Manually trashing the network plist files should be your first line of troubleshooting. This is one of those tricks that consistently resolves even the most stubborn wireless problems on Macs of nearly any OS X version. This is particularly effective for Macs who updated to Yosemite that may have a corrupt or dysfunctional preference file mucking things up:

      1. Turn Off Wi-Fi from the Wireless menu item
      2. From the OS X Finder, hit Command+Shift+G and enter the following path:

    /Library/Preferences/SystemConfiguration/
    trash-network-configuration-settings-os-x-yosemite-wifi

      1. Within this folder locate and select the following files:

    com.apple.airport.preferences.plist
    
com.apple.network.identification.plist
    com.apple.wifi.message-tracer.plist

    NetworkInterfaces.plist

    preferences.plist

    1. Move all of these files into a folder on your Desktop called ‘wifi backups’ or something similar – we’re backing these up just in case you break something but if you regularly backup your Mac you can just delete the files instead since you could restore from Time Machine if need be
    2. Reboot the Mac
    3. Turn ON WI-Fi from the wireless network menu again

    This forces OS X to recreate all network configuration files. This alone may resolve your problems, but if you’re continuing to have trouble we recommend following through with the second step which means using some custom network settings.

  • by srobert,

    srobert srobert Nov 14, 2014 7:41 AM in response to Linc Davis
    Level 1 (25 points)
    Nov 14, 2014 7:41 AM in response to Linc Davis

    Problem still happens after resetting PRAM. Must be something else.

  • by Linc Davis,

    Linc Davis Linc Davis Nov 14, 2014 7:49 AM in response to srobert
    Level 10 (208,037 points)
    Applications
    Nov 14, 2014 7:49 AM in response to srobert

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.

    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.

    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.

    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.

    *The linked support article refers to OS X 10.10 ("Yosemite"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • by mrwahed,

    mrwahed mrwahed Nov 14, 2014 9:43 AM in response to thepianoman2
    Level 1 (5 points)
    Nov 14, 2014 9:43 AM in response to thepianoman2

    reset / delete system network preferences settings, restart computer  for a permanent fix as explained in details at http://osxdaily.com/2014/10/25/fix-wi-fi-problems-os-x-yosemite/

  • by srobert,

    srobert srobert Nov 14, 2014 10:38 AM in response to mrwahed
    Level 1 (25 points)
    Nov 14, 2014 10:38 AM in response to mrwahed

    osxdaily's fix did not work for me.

     

    Then again, I'm not connected through WI-FI. (Never even turned it on).

     

    Next step is re-installing the OS as Linc Davis suggested. I'll have to wait for a slow day to try it.

     

    Thanks for all the suggestions so far. I'll let you know if re-installing fixed my issue.

  • by rwross1776,

    rwross1776 rwross1776 Nov 18, 2014 9:08 AM in response to srobert
    Level 1 (19 points)
    Nov 18, 2014 9:08 AM in response to srobert

    I would not go through the trouble of reinstalling the OS.

     

    I have the same issue you describe across two completely different iMacs, one of which is a brand new 5k Retina.  There is definitely something broken in the discoveryd process, perhaps a memory leak.

     

    After running some amount of time, it increases in both CPU demand and memory.  Once it grows to a certain point, it starts blowing all sorts of errors in console and cannot resolve IP addresses.

     

    Rebooting causes the process to reset so provides temporary relief, as does the terminal command referenced above.  However, I am unsure whether the terminal command reestablishes the bonjour connections necessary for networked Macs to see each other.  I tried just quitting the process within Activity manager and going that route definitely disconnects Mac to Mac networking until reboot. :-(

     

    Any other suggestions from the community are welcome as I've run out of ideas.  I have an open case with Apple Engineering, but that's a long road with limited interaction.

  • by srobert,

    srobert srobert Nov 18, 2014 10:59 AM in response to srobert
    Level 1 (25 points)
    Nov 18, 2014 10:59 AM in response to srobert

    Just to add that the 10.10.1 update did not fix my discoveryd bug

  • by rwross1776,

    rwross1776 rwross1776 Nov 22, 2014 9:54 AM in response to srobert
    Level 1 (19 points)
    Nov 22, 2014 9:54 AM in response to srobert

    *Update*

     

    By reducing the number of apps that I had running in background making DNS calls, this last reboot lasted about 48 hours before discoveryd started blowing lots of console errors.  For the most part, this occurred by repeated use of Safari although I'm sure some other aspects of the system were making DNS calls as well.

     

    Memory and CPU usage never went above 50MB and 9% respectively.  CPU usage settled down after I stopped actively surfing pages so, strictly speaking, a reboot wasn't required this last time since had I not been checking logs, i wouldn't have been aware of the errors.

     

    I'm going to let the system work and see what happens this time...if it's the same as above, then I'll reboot once the errors start and reintroduce those Apps and see if things go casters up faster and with more effect.

     

    I'd encourage everyone to get an active case going with a Senior Apple Tech and Engineering...if they start seeing those console logs coming from multiple places, it might get more focus than would otherwise.

  • by Carl Jonard,

    Carl Jonard Carl Jonard Nov 24, 2014 2:48 PM in response to srobert
    Level 1 (25 points)
    Nov 24, 2014 2:48 PM in response to srobert

    This is also happening to me (and this guy). I haven't found a permanent fix. Quitting discoveryd in Activity Monitor clears it up instantly, but only temporarily. I don't use Adium or Wi-Fi, and I've installed the 10.10.1 update.

    Screen Shot 2014-11-24 at 4.33.51 PM.png

  • by rwross1776,

    rwross1776 rwross1776 Nov 25, 2014 3:25 PM in response to Carl Jonard
    Level 1 (19 points)
    Nov 25, 2014 3:25 PM in response to Carl Jonard

    Do you have any 3rd party apps that continually poll web sites...for example...and RSS reader like Newsbar?

     

    As for quitting the discoveryd process from Activity Monitor, like you, I found it temporarily fixed the problem, however, it also disconnects the computer from the local network for fillesharing, i.e., it is not longer seen in the sidebar of other macs.

     

    I have not found a way to restart whatever aspect of discoveryd that enables peer-to-peer networking after quitting it via activity monitor.  You might not have other macs on your network so didn't notice.  However, if you've found a way to restart local networking, please share :-)

     

    Meantime...I continue to have an open case with Apple Engineering and will post here with anything I find out.

  • by Carl Jonard,

    Carl Jonard Carl Jonard Nov 25, 2014 3:29 PM in response to rwross1776
    Level 1 (25 points)
    Nov 25, 2014 3:29 PM in response to rwross1776

    Do you have any 3rd party apps that continually poll web sites...for example...and RSS reader like Newsbar?

    Not that I know of… I do have Dropbox, Backblaze, FortiClient, Creative Cloud, Fantastical, and 1Password in my menu bar (and Mail checking for new messages every 5 minutes).

  • by rwross1776,

    rwross1776 rwross1776 Nov 25, 2014 3:34 PM in response to Carl Jonard
    Level 1 (19 points)
    Nov 25, 2014 3:34 PM in response to Carl Jonard

    Those definitely do request DNS responses so, overtime, could contribute to discoveryd blowing up...not that it should.

     

    My guess is that some Apps like Safari, Backblaze, Dropbox, etc are either trying to use a deprecated mdnsresolver process which was replaced by discoveryd in Yosemite, or...there's a memory leak in discoveryd and it can only handle so many requests before going to pot.

     

    When your discoveryd next goes casters up, check how much memory it's using.  Anything over 50MB seems to indicate a problem where the Sockets Delegate error starts appearing in Console.  When it grows beyond 100MB is where I've found that the process needs to be restarted either manually via Activity Monitor (which breaks local networking) or via reboot.

Previous Page 2 of 5 last Next