nsurlstoraged and CPU usage Since yesterday nsurlstoraged is constantly using a huge amount of CPU. Nothing shows up in the logs but opensnoop shows that the process is accessing

/Library/Containers/com.apple.mail/Data/Library/Caches/com.apple.mail/fsCachedData


The directory contains XML files from the beginning of the month (from October 1. at 8:12) up to now (growing). I now have more than 9 GB of cached data and a new file is created every 2-3 seconds.

After a reboot the nsurlstoraged starts again with the same behaviour.

Any idea on how to stop it or on when it will stop by itself?
This solved the issue for me:


Make sure you have a recent backup
Quit Safari (if it is running)
In Finder, type Shift-Cmd-G and enter ~/Library/Caches/com.apple.Safari
A Finder window will open, with the com.apple.Safari folder selected
Delete the whole folder
Restart Safari