Skip navigation

mdworker process suddenly high CPU usage

10201 Views 12 Replies Latest reply: Apr 3, 2014 7:05 PM by Sandra Davis RSS
asfafa Level 1 Level 1 (0 points)
Currently Being Moderated
Sep 18, 2012 9:31 AM

Hi All

 

I've been running Mountain Lion since it was released, upgrading from Lion. I've never had a problem with mdworker until a few days ago when suddenly, the mdworker process started hitting 90% CPU on my iMac.

 

I've disabled Spotlight, deleted the .Spotlight directories, rebooted the iMac, but each time mdworker . Prior to this, the iMac's CPU temperature was around 43C, with very little CPU usage, but now it is around 60C and 100% across the two cores. The only way to 'get back to normal' is to use :

 

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

 

but of course Spotlight doesn't work at all.

 

I've used 'sudo fs_usage -w -f filesys mdworker' but I can't see anything that mdworker is perhaps choking on.

 

Does any have any ideas? I'm racking my brain to remember if I did anything different a few days back that might have caused this to happen, but apart from just normal email and web surfing, nothing else springs to mind.

 

Help!

 

Paul

iMac, OS X Mountain Lion, 4GB RAM, 2TB HD
  • antobal Level 1 Level 1 (10 points)
    Currently Being Moderated
    Oct 3, 2012 12:47 PM (in response to asfafa)

    I was having the same problem, and a second level support person at Apple helped me solve the issue today:

     

    Look in the \library\spotlight folders both at your drive root level and your user folder. These folders contain spotlight plugins, with the extension .mdimporter. Some of those plugins, if defective, can make the Spotlight indexing processes to run continuously.

     

    Move the contents of those folders to the desktop.

     

    You may need to actually delete the files from the spotlight folders, once they are on the desktop: in my case, the Finder made a copy of them, instead of moving them.

     

    Restart the computer.

     

    Check the activity of mdworker on Activity monitor.

     

    If the problem is gone, put back those files one by one in the spotlight folder, until you find the culprit. I think in my case it was an old Parallels Desktop plugin.

     

    Good luck

     

    Antonio

  • David Losada Level 1 Level 1 (10 points)
    Currently Being Moderated
    Nov 28, 2012 1:41 AM (in response to antobal)

    In my case it was the BritannicaBookmark.mdimporter that was a PowerPC mdimporter. But it was not in \library\spotlight but inBritannica 12.0/Ultimate Reference Suite.app/Contents/Library/Spotlight.

     

    You can see what spotlight plugin is choking on you by selecting the mdworker process in the Activity monitor and click on Open files and processes.

  • margaret.miz Level 1 Level 1 (10 points)
    Currently Being Moderated
    Jan 26, 2013 1:37 PM (in response to asfafa)

     

    In my case it was the BritannicaBookmark.mdimporter that was a PowerPC mdimporter. But it was not in \library\spotlight but inBritannica 12.0/Ultimate Reference Suite.app/Contents/Library/Spotlight.

     

    You can see what spotlight plugin is choking on you by selecting the mdworker process in the Activity monitor and click on Open files and processes.

     

    Sounds helpful, but I don't see "Open files and processes" in Activity Monitor. If I click on inspect, I get a choice to "Sample" processes. I get a system log that is a bit beyond me.

     

    I was having the same problem, and a second level support person at Apple helped me solve the issue today:

     

    Look in the \library\spotlight folders both at your drive root level and your user folder. These folders contain spotlight plugins, with the extension .mdimporter. Some of those plugins, if defective, can make the Spotlight indexing processes to run continuously.

     

    Also sounds helpful, I found .mdimporter files in my system library, but nothing looked unusual. I didn't see a spotlight folder in my user library. I looked in application support and several other places. I used Onyx to repair permissions, rebuild spotlight index, clear caches etc, rebooted, it seems to be OK now.

  • margaret.miz Level 1 Level 1 (10 points)
    Currently Being Moderated
    Jan 28, 2013 12:58 PM (in response to asfafa)

    Thanks - I think this must be the same as the "Sample Process" button - I am in Lion, not Mountain Lion, perhaps this is why. In any case, I'm afraid these log entries are a bit beyond my comprehension. One thing I did which I think arrested the runaway mdworker processes was to go into user/library/saved application states and remove the file of a program I was having trouble with at the time. I had also used Onyx to rebuild the Spotlight index, but the mdworker problem had come back.

     

    As far as finding all the mdimporter files, Easyfind found more of them than the Terminal command.

  • qwerty64 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jun 2, 2013 4:35 AM (in response to David Losada)

    Hi,

    I also had this problem. Your answer pointed me to the solution. Thank you very much!

  • Maxxx-im Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 24, 2013 3:51 AM (in response to David Losada)

    Thanks it was driving me crazy

  • margaret.miz Level 1 Level 1 (10 points)
    Currently Being Moderated
    Sep 2, 2013 1:34 PM (in response to antobal)

    When I searched for mdimporter files in easyfind, I found a lot of duplicates. I had included hidden volumes in my search - these duplicates are in a hidden "(Original)" HD. Is this my recovery partition, or is it something that could be causing problems?

     

    Easyfind screenshot - duplicate Original HD.png

     

    Message was edited by: margaret.miz

  • tonyk451 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 18, 2013 5:01 PM (in response to David Losada)

    Thanks David, that solved my problem. Just in case anyone's wondering, Britannica 13 looks like it causes the same symptoms under 10.8.5.

  • 60wpm Level 1 Level 1 (125 points)
    Currently Being Moderated
    Dec 9, 2013 5:51 AM (in response to margaret.miz)

    Thanks Margaret.miz -- I didn't quite get it all but I got this:

     

    In my case it was the BritannicaBookmark.mdimporter... But it was not in \library\spotlight but inBritannica 12.0/Ultimate Reference Suite.app/Contents/Library/Spotlight.

     

    I got rid of that. mdworker is no longer 99% of CPU usage...in fact it's not even on the list for Process Names.

     

    Note: I also put my new Time Capsule into Privacy on Spotlight.

     

    RAM no longer seems to be so quickly deplete...so far so good.

  • Sandra Davis Level 1 Level 1 (20 points)
    Currently Being Moderated
    Apr 3, 2014 7:05 PM (in response to David Losada)

    Thank you! That really helped me. I didn't know that Britannica was a PowerPC application.

    I don't know how to up vote you but thanks!

Actions

More Like This

  • Retrieving data ...

Bookmarked By (2)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.