MacOS – Mail memory usage

macosmail.appmemory

I'm seeing massive RAM usage from Mail

I removed all mail accounts as I assumed it was something in an inbox taking up space, but even then, with no accounts other than iCloud (which contains zero messages and is never used) it's still ramping up to over 12G of ram usage

RAM usage with Mail running

As soon as mail is killed, the ram usage drops

RAM usage after mail is killed

Can anyone suggest where to start looking to identify why the RAM is being consumed like this and how to stop it?

OSX El Capitain 10.11.1
Macbook Pro 15" (Late 2011)
2.4ghz i7 with 16G of RAM

Best Answer

First i would try and isolate the problem. Is Mail.app taking the same amount of memory on a new user account, im talking about a OS user account (Create a new test user in System preferences -> Users and Groups -> +)

In case it does i would look at "/Library/Application Support/Apple/Mail" and compare to a known good system (which only should contain Stationery) im suspecting you might have some plugins that make Mail.app use more memory than usual (i have 21k mail in my inboxes and it only uses 230mb).

If only your exciting user show this behavior, start by moving the ~/Library/Mail folder to like ~/Library/Mail.old and see if it stops using ram. Otherwise i would start looking for plugins or other applications that may interact with mail (there might be some internet plugins)