Accountsd is eating up memory on my MacBook
I'm using a new MacBook Pro 15" with MacOS Sierra (10.12.5) with 16G RAM and 2.6GHz CPU. I moved to this laptop a couple of months ago and since then I experienced these symptoms.
The system gradually slows down and at some point it starts asking me force quit different applications. I looked at Activity Monitor and I noticed that at such points accountsd is using 20G+ of memory. I tried to recover different ways, even killing accountsd but each time the only real solution was rebooting the machine.
Since the last reboot 3 days ago I started to watch accountsd. It's memory consumption stated low, definitely below 1G. However, over the 3 days it gradually climbed up, now it's close to 10G. This is by far the biggest consumer of memory. See the screenshot from activity monitor:
I found some articles talking about excessive CPU usage and accountsd, but CPU usage is normal. Besides, the cause of those was use of Mail.app but I'm using Thunderbird. I also suspected Calendar (which I'm using) but the memory usage was climbing even when I completely shut down the Calendar.
At this point I'm clueless, any help is greatly appreciated.
-g
MacBook Pro TouchBar and Touch ID, macOS Sierra (10.12.5)