https://stackoverflow.com/questions/625 ... s-catalina
Have you tried looking for other ways to modify the open files limit on MacOS Catalina? A quick search led me to here which suggests the following for modifying it for the system while it is running:
sudo launchctl limit maxfiles <soft limit> <hard limit>
This site and this superuser question suggests to modify /Library/LaunchDaemons/limit.maxfiles.plist to permanantly increase it.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxfiles</string>
<string><your soft limit here></string>
<string><your hard limit here></string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>
Then, finish up by changing permissions and verifying the change.
sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist
launchctl limit maxfiles
Too many open files with Mariadb 10.4.13 on Macos Catalina
Re: Too many open files with Mariadb 10.4.13 on Macos Catalina
https://stackoverflow.com/questions/395 ... ning-files
"Files" include network sockets, which are a type of file on Unix-based systems. The maximum number of open files is configurable with ulimit -n
# Check current limit
$ ulimit -n
256
# Raise limit to 2048
It is not surprising to run out of file handles and have to raise the limit. But if the limit is already high, you may be leaking file handles (not closing them quickly enough). In garbage-collected languages like Python, the finalizer does not always close files fast enough, which is why you should be careful to use with blocks or other systems to close the files as soon as you are done with them.
"Files" include network sockets, which are a type of file on Unix-based systems. The maximum number of open files is configurable with ulimit -n
# Check current limit
$ ulimit -n
256
# Raise limit to 2048
代碼: 選擇全部
$ ulimit -n 2048