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

What is com.apple.IconServicesAgent?

Hi, after installing Mavericks there's a new process 'com.apple.IconServicesAgent' in Activity Monitor using 165Mb of RAM.


Anyone has any idea what it is?


Thanks in advance

MacBook Pro, OS X Mavericks (10.9)

Posted on Oct 23, 2013 12:54 PM

Reply
Question marked as Best reply

Posted on Aug 1, 2017 3:32 PM

Open Macintosh HD then click Users and Your Home Folder then after *hold down Command and press together the two keys Shift and . (period key). You should see secret folders that Apple hides for a cleaner look. If you don't then try rapidly pressing the Shift key and period key while holding down Command. You should now see a folder containers. Click the folder containers. This is where the com. folders should be. That is what I know.


User uploaded file


*For some Mac Users this doesn't work. If you're one of them open Terminal and type defaults write com.apple.finder AppleShowAllFiles YES close Terminal and relaunch Finder now the secret folders should be visible. To hide them again type defaults write com.apple.finder AppleShowAllFiles NO. Ten relaunch finder again and the secret folders should be hidden again.

122 replies

May 31, 2014 9:06 PM in response to Dostanian

The solution I posted here only partially worked. Killing the service doesn't work. Whenever finder is opened it is automatically started and straight away goes back to eating CPU time. The only way to get it to behave is to create the a temp folder it requires. I added mkdir ${TMPDIR}/com.apple.IconServices to my .bashrc. I use the terminal a lot, so this works for me by creating the temp directory whenever I spawn the terminal.

Aug 18, 2014 6:56 AM in response to Dostanian

I found a fix that seems to work, see http://blog.hsoi.com/2014/02/25/my-slow-mac-mavericks-coreservicesd-iconservices agent-and-how-fs_usage-saved-me/comment-page-1/


If you have the same problem and the solutions given in this thread don't work, please run sudo fs_usage -f pathname -w com.apple.IconServicesAgent | grep open in the Terminal and post your output here.


For me, XCode seemed to be the problem.


Uninstalled XCode by sudo -r /Applications/XCode.app. Cleared all caches by sudo rm -r /Library/Caches and ~/Library/Caches, then mkdir of the same (don’t know and think that this step is necessary). Reinstalled XCode.

Problem gone.

Dec 17, 2014 6:08 AM in response to sonja4me

In my particular case, following did NOT help:



`killall -KILL com.apple.IconServicesAgent`



`mkdir -p ${TMPDIR}/com.apple.IconServices`



However, I was watching its behaviour via



`sudo fs_usage -f pathname -w com.apple.IconServicesAgent | grep open`



and saw extensive activity in various dirs (including VLC dir, and inside some system services dirs, like /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources). I could reinstall VLC, but IOStorageFamily is sort of built in...



Anyway, **after a bit deeper research, the culprit turned out to be XtraFinder! I restarted and updated XtraFinder, and so far IconServicesAgent has been quiet.**

Feb 20, 2015 10:12 PM in response to enarwpg

I have the same questions about checking out comments! Think it´s about 6-8 weeks (have to check it out) sins my mac start from rest with processor hang about once every morning. I can stop it with a restart or by ending the process in active monitor - This does not solve the problem, this must somebody from Apple read or detect .. or (?)

Mar 30, 2015 6:42 PM in response to lniem

Anybody knows if this has improved in Yosemite?


Here is a tip to address memory issue with com.apple.IconServicesAgent :


I didn't have as much of high CPU problem as much as the amount of memory com.apple.IconServicesAgent consumes.. At peak I used to have 5.4 GB and was constantly busy with refreshing the icon cache and somehow this or something else would also modify Aliases once in a few hours. So I would end up with always changes 100's of Aliases (maybe the icons in Aliases). Of course this would tick a number of problems including frequent Spotlight Indexing and Time Machine which now would think the Aliases have changed so they need to be backed up. I ended up with about 20GB of folders in Time Machine representing backup of constantly modified Aliases. As result the agent would use quite a bit of CPU.

Fortunately I have 16Gb in total. After solving issue below I managed to reduce the size of the agent to about 1GB in memory and it's pretty quiet on CPU too.

My first conscious step was to make the Aliases "locked" files, so they can't be modified by any process. This helped and it reduced the CPU usage by om.apple.IconServicesAgent and completely silenced Time Machine and Spotlight Indexing.

So I figured it's Aliases and how Mavericks deals with them and decided to change the Aliases to Symlinks. The aliases in Mavericks are huge. Coming from Snow Leopard it's a jump. I had a total of about 3.5 GB of aliases pointing to apps on OSX. So I created Symlinks instead of aliases. The size of all close to 1000 of symlinks is now 300KB !! whereas before the combined size of aliases was 3.5 GB !!. No wonder..


The disadvantage with Symlinks they break if items are moved, and, it seems they are not indexed by spotlight (haven't figured out yet).


But I it's not issue for example for things like Apps. I find it useful to group apps of same category if I don't remember the name.

Jul 26, 2015 3:31 PM in response to alvarofromm

If you're having the problem where com.apple.IconServicesAgent is going crazy in mavericks, hogging the CPU and spinning up your fan, there is a temporary fix. The temporary fix is on the web in several places, but I'll repeat it here, followed by the actual fix.


First go to Applications - Utilities - Console

look for error messages in the console log like: com.apple.IconServicesAgent Failed to write to file /var/folders/xx/LOADOFJUNKHERE/T/com.apple.IconServices/ANOTHERLOADOFJUNKHERE

where xx is some two character directory name and LOADOFJUNKHERE is a load of junk here

Now open up a terminal and make a directory in the right place:

mkdir /var/folders/xx/LOADOFJUNKHERE/T/com.apple.IconServices/

by replacing xx and LOADOFJUNKHERE with what you see in the console log


The console may have additional error messages relating to com.apple.IconServicesAgent that mention specific software. Upgrade or uninstall these. In my case, microsoft silverlight was having problems that were fixed by an upgrade.


That will fix it temporarily, but it will return on restarts etc.


*Actual fix*

The root cause is almost certainly that you have installed software that is very aggressive in cleaning temporary directories on closure. This may have been before upgrading to mavericks, and the problem has been triggered by the upgrade. In my case this was the music player 'ecoute'. I uninstalled this and the problem has gone away permanently. To find your offender is trial and error. You'll need to turn off and on non-OS stuff sequentially and see what does it. The problem will not manifest itself obviously unless you open up a finder or downloads etc and scan through a number of directories where many icons are required. Open up the activity monitor (applications - utilities - activity monitor) and watch what happens with external software running while you open the finder and scan around various directories.

What is com.apple.IconServicesAgent?

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