Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files related to "maximum limits" article are missing #4

Open
jagthedrummer opened this issue Aug 23, 2022 · 2 comments
Open

Files related to "maximum limits" article are missing #4

jagthedrummer opened this issue Aug 23, 2022 · 2 comments

Comments

@jagthedrummer
Copy link

Your blog post here (https://wilsonmar.github.io/maximum-limits/) points to some files that are no longer in this repo.

https://github.com/wilsonmar/mac-setup/blob/master/configs/limit.maxfiles.plist

https://github.com/wilsonmar/mac-setup/blob/master/configs/limit.maxproc.plist

Are there newer and better ways of setting those limits?

@sebco
Copy link

sebco commented Oct 26, 2022

@wilsonmar thank you for your tutorial you're doing a greatjob 👍

I just wanted to add to @jagthedrummer's comment that there are some typos in the files:

So when executing the command (eg: sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist) I was getting the error:

/Library/LaunchDaemons/limit.maxfiles.plist: Invalid property list
Load failed: 109: Invalid property list

So i had to fix it like this:

limit.maxfiles.plist:

<?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/>
    <key>ServiceIPC</key>
      <false/>
  </dict>
</plist>

limit.maxproc.plist:

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

@wilsonmar
Copy link
Owner

wilsonmar commented Dec 3, 2024

Sorry about this. I've put your corrected files in the repo and automating it in mac-setup.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants