Glossary/Processes you will see
iconservicesagent
Also: icon cache
Quick answer
iconservicesagent is the macOS process that supplies the icons you see for apps, files and folders. Finder, the Dock, Spotlight and open and save dialogs ask it for an icon at the size they need, and it draws the icon once and keeps a copy for next time.
It runs under your own user account and works with a second process, iconservicesd, which keeps the icon cache shared by every account on the Mac. Together they are the reason a folder full of apps appears at once instead of drawing each icon from scratch.
On a settled Mac it does almost nothing. It gets busy when many icons are needed that it has no copy of yet.
Why iconservicesagent is using so much CPU or memory
Its saved icons were thrown away or are out of date, so it is drawing them again. This follows a macOS update, installing or updating many apps at once, and moving to a new Mac. Opening a folder with thousands of items, or one on a slow network drive, also makes it work, because every item needs an icon.
Less often the icon cache itself is damaged. The signs are icons that show as blank pages or the wrong picture, with iconservicesagent busy or holding gigabytes of memory for hours.
What to do about it
After an update, wait: it settles once the icons you actually look at have been drawn. If it has been busy or large for hours, select it in Activity Monitor and quit it. macOS starts it again the moment an icon is needed, and it begins with a clean slate.
Restarting the Mac does the same for both icon processes. If icons are still wrong after that, start up once in safe mode, which clears system caches, and then restart normally. There is no need to delete the icon cache by hand in Terminal, and on current versions of macOS parts of it are protected from that anyway.
Questions people ask
What is iconservicesagent on Mac?
The macOS process that draws and stores the icons for apps, files and folders, so Finder and the Dock can show them quickly.
Why is iconservicesagent using so much memory?
It is holding icons it has drawn, usually after an update or after opening very large folders. If it keeps growing for hours, quit it in Activity Monitor; macOS starts a fresh one.
Is it safe to quit iconservicesagent?
Yes. Icons may be blank for a second while it starts again, and nothing is lost. It is the quickest fix when it is stuck.
Related
Looking for something better than Activity Monitor? See the best Activity Monitor alternatives for Mac, or browse every term in the glossary.