{"id":1157,"date":"2020-08-03T07:55:50","date_gmt":"2020-08-03T05:55:50","guid":{"rendered":"https:\/\/ndk.sytes.net\/wordpress\/?p=1157"},"modified":"2020-08-03T07:55:50","modified_gmt":"2020-08-03T05:55:50","slug":"how-to-change-open-files-limit-on-os-x-and-macos","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1157","title":{"rendered":"How to Change Open Files Limit on OS X and macOS"},"content":{"rendered":"\n<p>To check the current limits on your Mac OS X system, run:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ launchctl limit maxfiles<\/pre>\n\n\n\n<p>The last two columns are the soft and hard limits, respectively.<\/p>\n\n\n\n<p><strong>Adjusting Open File Limits<\/strong><\/p>\n\n\n\n<p>To adjust open files limits on a system-wide basis, you must create a configuration file. It is a property list (aka plist) file in\u00a0<code>\/Library\/LaunchDaemons\/limit.maxfiles.plist<\/code>\u00a0that contains the following XML configuration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?>\n&lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\">\n&lt;plist version=\"1.0\">\n    &lt;dict>\n    &lt;key>Label&lt;\/key>\n    &lt;string>limit.maxfiles&lt;\/string>\n    &lt;key>ProgramArguments&lt;\/key>\n    &lt;array>\n      &lt;string>launchctl&lt;\/string>\n      &lt;string>limit&lt;\/string>\n      &lt;string>maxfiles&lt;\/string>\n      &lt;string>200000&lt;\/string>\n      &lt;string>200000&lt;\/string>\n    &lt;\/array>\n    &lt;key>RunAtLoad&lt;\/key>\n    &lt;true\/>\n    &lt;key>ServiceIPC&lt;\/key>\n    &lt;false\/>\n  &lt;\/dict>\n&lt;\/plist><\/pre>\n\n\n\n<p>This will set the open files limit to 200000. The file must be owned by root:wheel and have permissions -rw-r&#8211;r&#8211;. This permissions should be in place by default, but you can ensure that they are in place by running:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo chmod 644 \/Library\/LaunchDaemons\/limit.maxfiles.plist<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To check the current limits on your Mac OS X system, run: $ launchctl limit maxfiles The last two columns are the soft and hard limits, respectively. Adjusting Open File Limits To adjust open files limits on a system-wide basis, you must create a configuration file. It is a property list (aka plist) file in\u00a0\/Library\/LaunchDaemons\/limit.maxfiles.plist\u00a0that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1157","post","type-post","status-publish","format-standard","hentry","category-mac-osx"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1157"}],"version-history":[{"count":1,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1157\/revisions"}],"predecessor-version":[{"id":1158,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1157\/revisions\/1158"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}