I was chasing down another issue (slow "Save As") and thought these two issues may have been related (with QuickLook being the common broken link). Unfortunately, my "Save As" dialog is still miserably slow on the initial load; but IconServicesAgent hasn't gone above 30MB and he rarely makes an appearance in the Console!
Some of these steps may not be necessary, but here are all of the steps I took that inadverdently put IconServicesAgent back in its place. Note: all commands are a single-line, if they appear to be multiple that's just the forum formatting.
-
Check for any QuickLooks related .plist files. In a terminal:
mdfind com.apple.quicklook. -name .plist
-
I only had files at the system level (specifically within /System/Library/LaunchAgents/). If you have others, modify the directions below to take that into account (re-introducing plist files from the system level back up to the user).
-
Make some temporary directories to store these plist files, just in case:
mkdir ~/tmp-quicklook
-
Kill the IconServicesAgent:
killall -KILL com.apple.IconServicesAgent
-
Move the plist files to temporary directories:
sudo mv /System/Library/LaunchAgents/com.apple.quicklook.* ~/tmp-quicklook/
-
Reset QuickLook generators and disk cache:
qlmanage -r && qlmanage -r cache
-
Reboot
-
Move plist files back:
sudo mv ~/tmp-quicklook/com.apple.quicklook.* /System/Library/LaunchAgents
-
Reboot
From this point on you shouldn't see IconServiceAgent ever go above 30MB on the memory tab; Twitter is actually consuming more memory than IconServiceAgent is right now! You will continue to see entries in your logs but they should only occur once per file type, roughly. I found just scrolling through "All My Files" in Finder really quick took care of most everything and after another reboot and repeating this process - I saw very few, if any, new entries.
If this doesn't work, my only suggestion would be to remove all entries from the user's Login Items and then go through the instructions above (I did this but I don't beleive it was relevant, therefore the ommission).
Hello, I had this problem for a while and every solution I tired so far gave little or no result. Each time I tried I use finder to see the content oh the user directory the inconservicesagent freeze the finder for 5 or 10 min. It happens also when I change the view type from list to icons or cons to list.
I tried this command but it gave me no clue of what was happening
sudo fs_usage -w -f filesys com.apple.IconServices
Then I realised that this commend was for older OS so instead I tried:
sudo fs_usage -w -f filesys iconservicesagent
And BINGO... the iconservicesagent was busy dealing with an encrypted dmg I have in my home folder which has a custom icon. I deleted the custom icon of the dmg and now so far so good no more crazy iconservicesagent behaviour.
I tried to use a new custom icon but the problem reappeared... so definitely it is a bug with customs icons...
Hope it willl help.