Just to add another data point to the conversation, like a lot of people (or so it now turns out), I’ve been having this problem on a recurring basis ever since I first started using Lion, and continuing now on Mountain Lion.
I’d worked out that AddressBookSourceSync was the offending process: it would run until it consumed all possible RAM (my MBP has 8GB and it would happily consume nearly all of that), and grind everything else on the computer to a standstill.
For a while now I’ve been “solving” the problem by removing executable permissions from the program, as follows:
sudo chmod a-x /System/Library/Frameworks/AddressBook.framework/Versions/A/Resources/AddressBo okSourceSync.app/Contents/MacOS/AddressBookSouthceSync
This “works”, in that AddressBookSourceSync can no longer run and so the problem stops coming back for a while, but any time I run an OSX update or a disk permissions repair, the custom permissions are reverted and the problem comes back.
And, sure enough, after applying the 10.8.2 update last night, the problem indeed came back again — it’s nice to see that even now, there’s no real fix for this from Apple — and was so bad that within ~20 minutes of rebooting, AddressBookSourceSync had consumed all available memory and brought the computer to a grinding halt (clock stopped, couldn’t move the mouse cursor, eventually even the caps lock key stopped responding) and I had to do a hard reboot.
When this happened three times in a row, I finally thought to search for it, and found this discussion. And sure enough, Isday’s procedure resolved it. THANK YOU ISDAY!
For posterity, here’s how I fixed it & proved that it remained fixed:
- Booted to single-user mode (I’m a Unix dork, this sort of approach appeals to me, modify as you wish).
- Moved /Users/me/Library/Application Support/AddressBook to /Users/me/Library/Application Support/AddressBook.MOVED
- Copied the Configuration.plist file from the AddressBook.MOVED folder to the new, empty AddressBook folder.
- Rebooted, then immediately began monitoring Activity Monitor & top output (cf again, Unix dork).
- Went to System Preferences → iCloud, saw that Contacts had been deselected, so I checked it off again.
- Went back to Activity Monitor & Terminal, and noted that AddressBookSourceSync started running again, but never consumed more than about 250MB of RAM.
- Examined the new AddressBook folder, which fairly quickly grew from empty (plus the Configuration.plist file) to around 30MB, where it stabilized. (The old version of the folder was around 200MB; I haven’t bothered working out the relevant differences.)
- Went to Contacts, made some random changes (de-duped records), just to force a resync to iCloud. Again, AddressBookSourceSync started back up but the memory consumption never spiked like it was doing before.
- Went to System Preferences → Mail, Contacts & Calendars, and enabled the new Facebook integration. I used the “Update Profile Photos” option to have it update my contacts from my Facebook friends list. Again, AddressBookSourceSync fired off and the AddressBook folder started growing again (eventually plateauing around 53MB), but the memory consumption hovered between 100MB & 200MB, which is totally reasonable.
It’s so nice to finally have a resolution for this! Thank again, Isday!