PDA

View Full Version : Mail 6.3 uses CPU 100+%?




OverSpun
Mar 29, 2013, 07:24 PM
This has to be one of the strangest things I've seen while I'm writing emails or even reading email sometimes... I went to Activity Monitor and I noticed that Mail was using 103% CPU, how could that be possible?

Mail has been working terribly since I upgraded to ML, starting with this- with strange signature issues and never fixed.(http://forums.macrumors.com/showthread.php?t=1413726)

I just deal with the signatures but the 100% CPU happens maybe every few days or so. I either quit and open Mail again or restart and everything is smooth again.

I couldn't find anything from searching but I can't be the only person who has seen this or any ideas?



MrMacMack
Mar 30, 2013, 08:47 AM
How many mail accounts do you have added?

OverSpun
Mar 30, 2013, 03:13 PM
How many mail accounts do you have added?

I have 5 emails on it but I never noticed any issues in Lion or SL or earlier. I usually see it while I'm composing an email and the cursor disappears and the text also lags by at least a few 5-10 seconds and it makes it slow to finish an email.

MrMacMack
Mar 30, 2013, 04:24 PM
Open console and then type v2 layout in the filter and see if there's anything concerning in the log.

OverSpun
Mar 30, 2013, 04:30 PM
Open console and then type v2 layout in the filter and see if there's anything concerning in the log.

I tried it but v2 layout wasn't found. Strange.

GGJstudios
Mar 30, 2013, 04:58 PM
This has to be one of the strangest things I've seen while I'm writing emails or even reading email sometimes... I went to Activity Monitor and I noticed that Mail was using 103% CPU, how could that be possible?
You can have up to 100% for each CPU core, physical and virtual.

MPG - Mac Performance 101: Cores, Processes, Memory - CPU Cores Explained (http://macperformanceguide.com/Optimizing-Cores.html)

OverSpun
Mar 30, 2013, 05:35 PM
You can have up to 100% for each CPU core, physical and virtual.

MPG - Mac Performance 101: Cores, Processes, Memory - CPU Cores Explained (http://macperformanceguide.com/Optimizing-Cores.html)

Thanks, that is helpful but I wish it would make sense about Mail since its the only app that has issues.

My Quad 2.5 MBP came with 4gb ram w/ 750gb 7200HD and I still had these issues. I eventually upgraded to 16GB and it didn't change anything about Mail if it was bad ram. Of course, the machine runs a lot better besides Mail.

I would like to upgrade to an SSD but a SATA drive shouldn't have caused this.

Weaselboy
Mar 31, 2013, 10:13 AM
Thanks, that is helpful but I wish it would make sense about Mail since its the only app that has issues.

My Quad 2.5 MBP came with 4gb ram w/ 750gb 7200HD and I still had these issues. I eventually upgraded to 16GB and it didn't change anything about Mail if it was bad ram. Of course, the machine runs a lot better besides Mail.

I would like to upgrade to an SSD but a SATA drive shouldn't have caused this.

Let's try rebuilding the Mail index. A corrupted index can cause your symptoms.

First quit Mail app.

Click the Desktop to bring focus to the Finder. Now hit shift-command-g (all three at once) and a box will pop up. Paste the below line in the box and hit enter. Now delete any files starting with Envelope like in my screen shot.

Launch Mail and wait while it reindexes your mailboxes.

~/Library/Mail/V2/MailData

http://imgur.com/9XRcIJY.png

OverSpun
Mar 31, 2013, 06:51 PM
Let's try rebuilding the Mail index. A corrupted index can cause your symptoms.

First quit Mail app.

Click the Desktop to bring focus to the Finder. Now hit shift-command-g (all three at once) and a box will pop up. Paste the below line in the box and hit enter. Now delete any files starting with Envelope like in my screen shot.

Launch Mail and wait while it reindexes your mailboxes.

~/Library/Mail/V2/MailData

Image (http://imgur.com/9XRcIJY.png)

Thanks and a quick question before I try this-

Will affect any of my stored emails "On my Mac", pop3 emails, etc?

Weaselboy
Apr 1, 2013, 08:32 AM
Thanks and a quick question before I try this-

Will affect any of my stored emails "On my Mac", pop3 emails, etc?

Nope. Everything will still be there. This is just an index of the messages, not the messages themselves.

TimmyR
May 28, 2013, 09:02 AM
Let's try rebuilding the Mail index. A corrupted index can cause your symptoms.

First quit Mail app.

Click the Desktop to bring focus to the Finder. Now hit shift-command-g (all three at once) and a box will pop up. Paste the below line in the box and hit enter. Now delete any files starting with Envelope like in my screen shot.

Launch Mail and wait while it reindexes your mailboxes.

~/Library/Mail/V2/MailData

Image (http://imgur.com/9XRcIJY.png)

Good morning, I was having the same trouble with Mail, and after reindexing, I received the following e-mail.

"You have now exceeded your iCloud storage, including an additional amount provided to allow you to continue receiving email. As a result, you will not be able to send or receive new email messages with your iCloud email address until you free up storage space or buy more storage."

Will this resolve itself or does it require further action?

Weaselboy
May 28, 2013, 02:21 PM
Good morning, I was having the same trouble with Mail, and after reindexing, I received the following e-mail.

"You have now exceeded your iCloud storage, including an additional amount provided to allow you to continue receiving email. As a result, you will not be able to send or receive new email messages with your iCloud email address until you free up storage space or buy more storage."

Will this resolve itself or does it require further action?

It sounds like you have exceeded the storage limit for the account. Right click your Inbox then select Get Account Info to see what percentage of the storage space you are using.

TimmyR
May 29, 2013, 08:59 AM
Well that iCloud exceedance was temporary. I took my laptop to Genius Bar then called Apple Care later. Fan has been checked. Mail has been rebuilt and reinstalled. Mail still runs straight to 100% CPU and I am now noticing Safari will bog down for some simple internet tasks. I created a second user account and have seen none of these problems. I am calling Apple Care again and need to figure out how to transfer my programs and documents to the new user account. For example, I do not want Office 365 to ding me for another install.

Weaselboy
May 29, 2013, 10:34 AM
Well that iCloud exceedance was temporary. I took my laptop to Genius Bar then called Apple Care later. Fan has been checked. Mail has been rebuilt and reinstalled. Mail still runs straight to 100% CPU and I am now noticing Safari will bog down for some simple internet tasks. I created a second user account and have seen none of these problems. I am calling Apple Care again and need to figure out how to transfer my programs and documents to the new user account. For example, I do not want Office 365 to ding me for another install.

Is iCloud the only mail account you have? If it is, you might try going into Mail prefs and just delete the whole account from Mail. Then delete the entire contents of ~/Library/Mail/V2/ Then add the iCloud account back and start fresh. You won't loose any messages as they are all on the iCloud IMAP server and will be redownloaded.

Dickmason
Jun 24, 2013, 03:07 PM
Let's try rebuilding the Mail index. A corrupted index can cause your symptoms.

First quit Mail app.

Click the Desktop to bring focus to the Finder. Now hit shift-command-g (all three at once) and a box will pop up. Paste the below line in the box and hit enter. Now delete any files starting with Envelope like in my screen shot.

Launch Mail and wait while it reindexes your mailboxes.

~/Library/Mail/V2/MailData

Image (http://imgur.com/9XRcIJY.png)

------------------------
I have some 77000 mails on the IMAP server. Followed the above and Mail hangs around 2500 messages as it tries to "import messages" according to the dialog box. Does a "preparing" step and the proceeds up to near 2500 and stalls. Mail is hung and won't do anything except do this over again when I quit the "import" and restart Mail. Only change is that the total message count seems to go down by 2 or 3 every time I restart Mail and get the "import messages" and hit "continue". I'm stumped.

Any suggestions are appreciated.

Weaselboy
Jun 24, 2013, 03:23 PM
------------------------
I have some 77000 mails on the IMAP server. Followed the above and Mail hangs around 2500 messages as it tries to "import messages" according to the dialog box. Does a "preparing" step and the proceeds up to near 2500 and stalls. Mail is hung and won't do anything except do this over again when I quit the "import" and restart Mail. Only change is that the total message count seems to go down by 2 or 3 every time I restart Mail and get the "import messages" and hit "continue". I'm stumped.

Any suggestions are appreciated.

I'm sorry, beyond what was already suggested I can't think of what would cause that.

Dickmason
Jun 26, 2013, 09:02 AM
Did a 4.7 gb 10.7 Combo reinstall. Just in case it was some subtle corruption in something else.

I found ~Library/Mail/V2/MailData/Envelope Index files with 20 or so letter and number file names. Apparently one for every one of the 10 or so failed attempts at "importing". Deleted them all. When I reinstalled the 3 old backed up ///Envelope Index files I had deleted, Mail returned to normal operation. 100-120% CPU usage.

Put all 4 Mail accounts offline. Opened Windows/activity in Mail and stopped all activity. Mail dropped to 85-95% CPU usage. This is nuts. Nothing is supposedly going on, but Mail continues to hog the better part of one CPU.