Como posso alterar permanentemente os limites do sistema no Mojave (OSX 10.14)?

Como posso alterar permanentemente os limites do sistema no Mojave (OSX 10.14)?

Como você altera os limites do sistema para MacOS Mojave? Preciso aumentar o limite de arquivos abertos.

Responder1

Há um bom guia sobre issoaqui

Basicamente você tem que desabilitar SIP(System Integrity Protection) e depois editar

sudo vim /Library/LaunchDaemons/limit.maxfiles.plist

com a seguinte carga útil

<?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>64000</string>
 <string>524288</string>
 </array>
 <key>RunAtLoad</key>
 <true/>
 <key>ServiceIPC</key>
 <false/>
 </dict>
</plist>

Observe os dois números e ajuste-os às suas necessidades

informação relacionada