Here is the step I followed

Step 1: Create new file


Step 2: paste the following content

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
<plist version="1.0">

Step 3:

sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist

Step 4:

sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist

Runs into

Load failed: 5: Input/output error

I am using mac sonoma 14.3.1

Can someone tell what am I missing here?

  • I tried the link, it does not work sudo launchctl limit maxfiles 128000 524288 follow by ulimit -n 524288 10485760 does not change ulimit the file allowed is still 4096
    – olaf
    Feb 27 at 10:06


Browse other questions tagged .