Mail uses excessive memory

Originator:will
Number:rdar://12265674 Date Originated:10-Sep-2012 11:23 AM
Status:Open Resolved:
Product:Mail Product Version:10.7.4 Build 11E53
Classification:Performance Reproducible:Always
 
Summary:

Mail.app's memory usage grows until the system becomes unresponsive.

Steps to Reproduce:

Launch Mail and observe its process's Real Mem and Virtual Mem in Activity Monitor.

Expected Results:

Mail uses a reasonable amount of memory and that memory use stays reasonably constant.

Actual Results:

Real Mem and Virtual Mem increase by approximately 20MB every second until the system becomes unresponsive. When I left Mail running over the weekend, my root volume was full and an out of memory error dialog was displayed. When I quit Mail, 100GB of space was freed on my root volume.

Regression:

It used to be possible to run Mail for long periods without this problem.

Notes:

I have a single Microsoft Exchange account set up. A message like the following is added to system.log twice per second:

10/09/2012 11:08:46.424 Mail: *** Assertion failure in -[EWSConnection sendMessage:forRequest:], /SourceCache/Message/Message-1278/MessageStores.subproj/EWSConnection.m:486
Received an unexpected error: Error Domain=EWSExchangeWebServicesErrorDomain Code=277 "The operation couldn’t be completed. (EWSExchangeWebServicesErrorDomain error 277.)" UserInfo=0x7ff7f16c7c90 {EWSErrorMessage=The request failed schema validation., NSUnderlyingError=0x7ff7f1965830 "The operation couldn’t be completed. (SOAPWebServicesErrorDomain error -1000.)"}, response: (null)
(
	0   Message                             0x00007fff98d01ef8 -[MFAssertionHandler _handleFailureWithPreamble:description:arguments:] + 116
	1   Message                             0x00007fff98d0208e -[MFAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 185
	2   Message                             0x00007fff98c30396 -[EWSConnection sendMessage:forRequest:] + 643
	3   Message                             0x00007fff98c40dff -[EWSGateway sendMessage:forRequest:] + 75
	4   Message                             0x00007fff98c5154c -[EWSRequestOperation executeOperation] + 108
	5   Message                             0x00007fff98d2297f -[MonitoredOperation main] + 228
	6   Foundation                          0x00007fff920cb6b4 -[__NSOperationInternal start] + 705
	7   Foundation                          0x00007fff920de912 ____NSOQSchedule_block_invoke_2 + 124
	8   libdispatch.dylib                   0x00007fff99c5ea86 _dispatch_call_block_and_release + 18
	9   libdispatch.dylib                   0x00007fff99c5f965 _dispatch_worker_thread2 + 255
	10  libsystem_c.dylib                   0x00007fff929bf3da _pthread_wqthread + 316
	11  libsystem_c.dylib                   0x00007fff929c0b85 start_wqthread + 13
)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!