10.0.3 Leaking Memory

I have been noticing extreme memory leaks in Safari, to where it uses over 68GB of app memory after only an hour or two usage. Since then I have taken the following steps:


  • Uninstall all extensions and plugins.
  • Deleted /Users/<username>/Library/Safari folder while Safari was quit, then started it up again.


The extreme memory leak has been averted, but now it still leaks memory when only sitting at the favorites page right after opening. First it starts out at around 30MB memory usage, but works its way up by about 1MB per minute going forward.


I also ran the following command to determine if there are any leaks:

leaks `ps ux | fgrep -i SAFARI.APP | fgrep -v fgrep | awk '{print $2}'`


This resulted in the following output:

Process:         Safari [1042]
Path:            /Applications/Safari.app/Contents/MacOS/Safari
Load Address:    0x1026a6000
Identifier:      com.apple.Safari
Version:         10.0.3 (12602.4.8)
Build Info:      WebBrowser-7602004008000000~2
Code Type:       X86-64
Parent Process:  ??? [1]

Date/Time:       2017-02-13 16:01:49.876 -0800
Launch Time:     2017-02-13 15:43:38.292 -0800
OS Version:      Mac OS X 10.12.3 (16D32)
Report Version:  7
Analysis Tool:   /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version:  Xcode 8.2.1 (8C1002)
----

leaks Report Version:  2.0
Note: Process 1042 is marked CS_RESTRICT.
For security, leaks will not show memory contents of restricted processes.

Process 1042: 193789 nodes malloced for 74891 KB
Process 1042: 32 leaks for 2784 total leaked bytes.
Leak: 0x60000023d7a0  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x600000369fc0  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x60000036b280  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x6000004206a0  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x600000629380  size=32  zone: DefaultMallocZone_0x1026dd000   NSWeakObjectValue  ObjC  Foundation
Leak: 0x600000a52390  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x600000a577c0  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x608000223b60  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x608000229bc0  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x608000229c60  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x608000364d40  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x608000366780  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x608000366fc0  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x60800036a980  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x6080004580f0  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x60800045fe30  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x60800062dd00  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x608000659f20  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x608000856aa0  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x61000042f420  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x61000044f330  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x61000057e600  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x618000229d80  size=32  zone: DefaultMallocZone_0x1026dd000   NSWeakObjectValue  ObjC  Foundation
Leak: 0x61800023ca80  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x618000369240  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x618000369b40  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x618000371400  size=192  zone: DefaultMallocZone_0x1026dd000   __NSCFTimer  ObjC  CoreFoundation
Leak: 0x6180004294a0  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x6180006206e0  size=32  zone: DefaultMallocZone_0x1026dd000   CFSet (Value Storage)  C  CoreFoundation
Leak: 0x61800065cc20  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x618000c54f70  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation
Leak: 0x618001046270  size=48  zone: DefaultMallocZone_0x1026dd000   CFSet  ObjC  CoreFoundation


Any thoughts on how to fix this?


Thanks!

~Mike

iMac with Retina 5K display, macOS Sierra (10.12.3)

Posted on Feb 13, 2017 4:05 PM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

10.0.3 Leaking Memory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.