Safari 10.0: Safari opens too many files
| Originator: | martin.kuehl | ||
| Number: | rdar://28789460 | Date Originated: | 2016-10-15 |
| Status: | Duplicate | Resolved: | 28708742 |
| Product: | Safari | Product Version: | Safari 10.0 (11602.1.50.0.10) |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary:
When opening lots of tabs and/or using Safari for long periods of time, com.apple.WebKit.WebContent will open so many files (well over 10,000) that other applications will start misbehaving and the kernel will start logging (to the system log) that the file table is full:
kernel: file: table is full
Steps to Reproduce:
1. Open lots of tabs (or just use Safari for a few days without relaunching it)
Expected Results:
Safari lets me browse the web and doesn’t impact the rest of the system.
Actual Results:
At some point, Safari (actually com.apple.WebKit.WebContent) will have opened so many files that it won’t display web content anymore, and other applications will fail to launch or start misbehaving in other ways. The kernel will start logging `kernel: file: table is full` to the system log.
When I notice the problems, lsof(1) usually lists just under 13,000 open files for com.apple.WebKit.WebContent processes. No other process will (when aggregated by name) have more than a few hundred files open.
Version:
Safari 10.0 (11602.1.50.0.10)
OS X 10.11.6 (15G1004)
Notes:
Attached is the report generated by sysdiagnose(1) in a case when Safari had over 11,000 files open but problems were not (yet) occurring.
According to its output both lsof and footprint “timed out”, but the contained lsof.txt seems to be complete.
There are twitter conversations about this problem starting at:
* https://twitter.com/mkhl/status/780049254123466752
* https://twitter.com/mkhl/status/781100400527175681
I use a few Safari Extensions but can reproduce the problem without any of them enabled.
Configuration:
Safari 10.0 on OS X 10.11.6 on a MacBookPro12,1
Attachments:
'sysdiagnose_2016.10.15_18-40-25+0200.tar.gz' was successfully uploaded.
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!