Last active
January 28, 2020 21:46
-
-
Save ashiqopu/d63696960ee732c3cac6bb1b1da92bf3 to your computer and use it in GitHub Desktop.
macOS Catalina maxfiles and maxproc limits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original post: | |
https://gist.github.com/tombigel/d503800a282fcadbee14b537735d202c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>524288</string> | |
<string>524288</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.maxproc</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>launchctl</string> | |
<string>limit</string> | |
<string>maxproc</string> | |
<string>2048</string> | |
<string>2500</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -O https://gist.githubusercontent.com/ashiqopu/d63696960ee732c3cac6bb1b1da92bf3/raw/2d1671c81e0713f5a67d6867921050feb9313cac/limit.maxfiles.plist | |
curl -O https://gist.githubusercontent.com/ashiqopu/d63696960ee732c3cac6bb1b1da92bf3/raw/2d1671c81e0713f5a67d6867921050feb9313cac/limit.maxproc.plist | |
sudo mv limit.maxfiles.plist /Library/LaunchDaemons | |
sudo mv limit.maxproc.plist /Library/LaunchDaemons | |
sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist | |
sudo chown root:wheel /Library/LaunchDaemons/limit.maxproc.plist | |
sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist | |
sudo launchctl load -w /Library/LaunchDaemons/limit.maxproc.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment