You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Lion mdworker and mdworker32 draining battery

Hi


Since upgrading to Lion my Macbook Pro 13 is getting very hot and constantly indexing with 4 x mdworker and 1 x mdworker 32


They are taking loads of CPU, causing a lot of heat and taking the battery that was steadily at 6-7 hours pre Lion down to 2 hours


I have seen lots of old threads on mdworker problems in Leopard and previous releses, but I have not had this problem until upgrading to Lion


Is there something different Lion is doing and any way to switch it off or is it a problem?


I went into System Preferences -> Spotlight and excluded my entire hard drive but it still keeps kicking in randomly a while after use. When rebooted it stays OK for a while then starts to go crazy as I use more apps.


There was only one incompatible app when I upgraded (McAfee Security) which I dont know if relevant.


My system.log seems to indicate there is some issue with McAfee even though not running - but could be a red herring and totally inrelated:


Menulet[16385]: Menulet : Caught an Exception while Registering with FMP

Menulet[16385]: Failed to register with FMP

com.apple.launchd.peruser.501[339] (com.mcafee.menulet): Throttling respawn: Will start in 10 seconds

com.mcafee.reporter[16386]: objc[16386]: Object 0x41b630 of class __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

McAfee Reporter[16386]: Reporter : FMP exception in ReporterRegisterWithFMP: msg :: connect call failed

McAfee Reporter[16386]: Failed to register with FMP

com.apple.launchd.peruser.501[339] (com.mcafee.reporter): Throttling respawn: Will start in 10 seconds

com.apple.kextd[10]: Can't open CFBundle for /usr/local/McAfee/AntiMalware/Extensions/Virex.kext.

--- last message repeated 1 time ---

com.apple.kextd[10]: Error: Kext /usr/local/McAfee/AntiMalware/Extensions/Virex.kext - not found/unable to create.

com.mcafee.virusscan.ssm.ScanManager[16387]: /usr/local/McAfee/AntiMalware/Extensions/Virex.kext failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).

com.apple.launchd[1] (com.mcafee.virusscan.ssm.ScanManager): Throttling respawn: Will start in 10 seconds


Anybody else getting this mdworker/mdworker32 going a little crazy now they are on Lion?


Thanks, Chris

MacBook Pro, Mac OS X (10.7)

Posted on Jul 25, 2011 11:52 AM

Reply
36 replies

May 15, 2012 8:13 PM in response to Energetic iDeveloper

I was having a similar problem with mds hogging resources, often taking 100% of one core out of 4.

I tried various things including excluing some partitions from spotlight and repairing permissions on all my disks and nothing work.

Then last night I ran software update which took me to 10.7.4 and today at least mds is behaving - not taking much resource at all.

Jun 14, 2012 2:21 PM in response to Chris-UK

I just thought I'd throw in the data point -- This is a 27 inch mid 2010 iMac. I'm running Lion 10.7.4 and STILL periodically have this problem re-occur -- high disk-I/O and high network I/O when the system is othewise simply sitting there doing nothing. (High I/O rates mean "more than zero" -- when the system is sitting there otherwise quiescent.)


Looking at Activity monitor, MDS and/or MDworker is eating up 20-40% of the CPU.


In my case it is particularly noticable because my internal HD is noisy -- Makes it easy to tell when it is getting a workout.


These periods of activity will last 10-20 minutes at random intervals. One will usually kick off shortly after any time I log in. (I always logout of my account overnight and don't automatically re-open windows -- letting stickies run as a logon process.)


This situation has been happening since I upgraded to Lion last fall.

Jun 15, 2012 7:02 AM in response to William H. Magill1

Hmm. Some cpu spikes by MDS and MDWorker are normal, usually after creating a large number of new files (or even one very large one), which can happen at startup even wthout automatically re-opening windows, and especially if more than 8 hours has passed. There are periodic system maintenance events that run daily/weekly/monthly that can trip it. One thing you might check is if you have some kind of repeating system error. Log in to an admin account and bring up the Console app. If you see repeated error messages, it could mean that something is out of whack and MDS is repeatedly re-indexing something, or trying to. 10-20 minutes is a pretty long time for periodic stuff.

Jun 15, 2012 12:18 PM in response to ealtson

Not only does this process (whatever it is) take much longer than expected, but the Console log is FULL of MD/MDworker errors related to each run ...


LOTS (pages) of this type:


com.apple.mdworker.isolation.0: invalid stream length 4843; should be 4725.


Interspersed with:


com.apple.mdworker.isolation.0: *** process 95258 exceeded 500 log message per second limit - remaining messages this second discarded ***

com.apple.mdworker.isolation.0: LZW decode: invalid chain sequence.

com.apple.mdworker.isolation.0: invalid stream length 2141; should be 2139.

com.apple.mdworker.isolation.0: LZW decode: encountered unexpected EOF.

com.apple.mdworker.isolation.0: warning: gstate stack underflow.

Just to pick a few of the more common ones -- but only when you only look at teh "All Messages" log, never any in the "DIagnostic and User Messages."

====

Interestingly, since posting about this yesterday, I was reading an Apple Tech note, primarily about ixxx and photos, with Lion etc. (I sync an iPhone and iPad with this iMac)

OS X Lion: After "Apply to enclosed items…", unable to change prefs, remove or save files, iPhoto & iTunes issues, Preview & TextEdit quit

Since I have "integrated" multiple different Macs with this one over the years by dragging stuff from them to here, I figured, what the heck, I probably have all kinds of reandom ownerships/groups so I did the "get-info home/apply to enclosed" thing, and so far since I did that last evening, I have not had mdworker kick off again! I realize that this was less than 24 hours ago at this point in time, but I was seeing this issue much more frequently than that.

====

Now if the "disppearing WiFi problem on 27 inch iMacs" also goes away !!!

Oct 23, 2012 6:23 PM in response to Chris-UK

SHAME APPLE that you seem to want some stupid WINDOWS solution to an actual problem! I had had this link with the actual solution a week ago, but you seem to want some stupid '500 clicks' solution' that would make this cool for windows users. KNOW YOUR AUDIENCE. The mac solution is ulike anyting for 'winders', stop acting like it is. Please post the actual solution to the problem per the original post, or else you are just another Jobs-problem, and we are just stuck in a Windows world.

Apr 1, 2013 4:52 PM in response to Chris-UK

I tried so many things to solve my mdworker exhuberence and it's running every 30 minutes or so at 100% like a busy lil' beaver and draining my battery. I looked at many different things that might be changing my file system regularly. I turned off time machine, stopped various jobs, etc. Then I saw a post on a large inbox causing problems and it clicked! The inbox changes every time there is mail delivered. If it is large it can cause the mdworker process to work overtime trying to reindex it every time it changes. I cleaned my inbox and archived my mail I wanted to keep to another folder. Now I have about 2000 msgs in the inbox. I also turned off spotlight searches of my mail. Now my machine is much more docile and the fan is off most the time. This has been so for only a few hours, so I'm still waiting on the final verdict. I think its a score for I have been dealing with this for months. So if you have a very large inbox, 1000s of messages, you may try moving mail so that the inbox in smaller and see if those lil' mdworkers get a rest at last.

Lion mdworker and mdworker32 draining battery

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