Safari tabs and NSPOSIXErrorDomain:24

Hi there!

I have a big and serious problem with file descriptors and I tried everything.


My laptop: MacBook Pro 13' 2018 with touchbar, i5, 16 Gb RAM, 512 ssd. MacOS 11.3.1.


Recently chrome just starts to crash without errors. I try to use Safari instead and have another problem.

When I open a new tab I get the following error:

NSPosixErrorDomain:24 - Error: "Too many open files in system". Sorry for screenshot in russian :)



Also, javascript in browsers (chrome and safari) is very slow often. On some sites UI is lagging and slow, but maybe this is another problem.


To fix errors with file descriptors I changed some limits.


Default setting:

launchctl limit
	cpu         unlimited      unlimited
	filesize    unlimited      unlimited
	data        unlimited      unlimited
	stack       8388608        67104768
	core        0              unlimited
	rss         unlimited      unlimited
	memlock     unlimited      unlimited
	maxproc     2784           4176
	maxfiles    256            10240


Custom settings which I tried:

launchctl limit
	cpu         unlimited      unlimited
	filesize    unlimited      unlimited
	data        unlimited      unlimited
	stack       8388608        67104768
	core        0              unlimited
	rss         unlimited      unlimited
	memlock     unlimited      unlimited
	maxproc     2784           4176
	maxfiles    10240          10240


Also I checked SSD:


smartctl -a disk0s2
smartctl 7.2 2020-12-30 r5155 [Darwin 20.4.0 x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       APPLE SSD AP0512M
Serial Number:                      C02829300TNJJ5910
Firmware Version:                   1161.100
PCI Vendor/Subsystem ID:            0x106b
IEEE OUI Identifier:                0x000000
Controller ID:                      0
NVMe Version:                       <1.2
Number of Namespaces:               1
Local Time is:                      Tue May 25 11:31:13 2021 MSK
Firmware Updates (0x02):            1 Slot
Optional Admin Commands (0x0004):   Frmw_DL
Optional NVM Commands (0x0004):     DS_Mngmt
Maximum Data Transfer Size:         256 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     0.00W       -        -    0  0  0  0        0       0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        38 Celsius
Available Spare:                    100%
Available Spare Threshold:          99%
Percentage Used:                    7%
Data Units Read:                    202 068 806 [103 TB]
Data Units Written:                 163 348 342 [83,6 TB]
Host Read Commands:                 2 319 293 376
Host Write Commands:                1 196 921 469
Controller Busy Time:               0
Power Cycles:                       141
Power On Hours:                     1 308
Unsafe Shutdowns:                   46
Media and Data Integrity Errors:    0
Error Information Log Entries:      0

Read 1 entries from Error Information Log failed: GetLogPage failed: system=0x38, sub=0x0, code=745


I even tried to "light" reset macos (without erase users data). It didn't help.


Finally, I can't understand, Mac OS can't manage with 40 tabs and several applications (skype, word, outlook, postman, vs code, archi, etc. ? My previous macbook air 2012 didn't have any problem...

MacBook Pro 13″, macOS 11.3

Posted on May 25, 2021 1:37 AM

Reply

Similar questions

5 replies

May 25, 2021 8:12 PM in response to alexdeia

Hi alexdeia,

Thanks for reaching out using Apple Support Communities.

We understand you've been seeing some issues with Safari including websites not loading or poor javascript performance. Happy to see how we can help.


Have you been able to try the steps in this next article?


If Safari doesn't open a webpage or isn’t working as expected


Further isolation could also come through testing the behavior in safe mode. Safe mode runs basic hardware checks on your Mac and will also disable certain software and extensions in order to create a clean test environment.


How to use safe mode on your Mac


To creat a test user account, follow the steps below to add a user. You can then log out of your primary user and In with the new user. This space would be to test websites or functions you were having trouble with to see if they work here. This would give us more of an idea if the issue is user specific or system-wide.


Set up users, guests, and groups on Mac


Hope this helps! Feel free to follow up to let us know how this goes.

Take care for now!

Jul 7, 2021 7:21 AM in response to CarlAVII

I have this issue now, too. Safari will open the first page of almost any website, but trying to click on a link within the site brings up the Domain:24 error.


I have no other tabs open in Safari, and other browsers work fine. Safari also works fine on other devices connected to the same network. I turned off the one extension that I had, with no effect.


Nothing has changed in my network settings, as far as I can tell. I can't use Safari at all.

Jul 21, 2021 2:19 PM in response to alexdeia

Hi. This is precisely the bug I've been encountering since updating to macOS Big Sur 11.4 trying to open a page in Safari – instead it shows the same grey error page:


Safari Can't Open the Page. The error is: "The operation couldn't be completed. Too many open files" (NSPOSIXErrorDomain:24)


I would understand if I had my computer up and running for weeks and dozens of open tabs. But just like alexdeia and akorn342 are saying: to have this error pop up 10 times out of trying to open 20 pages when Safari's got 6 tabs open – all absolutely resource-less, simple HTML pages with no complicated ads, graphics etc – and the system itself is idling as well, having been restarted for this particular reason a few hours ago, only having Mail and Pages open, I figure something must be wrong. Macs I used 10 years ago handled ten times more than this. Any idea what could be causing the problem please?


The links posted by CarlAVII unfortunately don't adress the problem – have no Extensions in Safari installed. And since the problem happens randomly, I don't know how I would test it in safe mode creating some test accounts. Thank you kindly in advance!

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.

Safari tabs and NSPOSIXErrorDomain:24

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