From 394a3fcf163cffa98f3322299d543ff69f2d8ee5 Mon Sep 17 00:00:00 2001 From: Larry Weya Date: Mon, 26 Jun 2017 13:33:10 +0300 Subject: [PATCH 1/3] Open files limit instructions on Sierra --- .../using/performance/open-files-limit.md | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/content/riak/kv/2.2.3/using/performance/open-files-limit.md b/content/riak/kv/2.2.3/using/performance/open-files-limit.md index 957ebcb153..dd259d9fb7 100644 --- a/content/riak/kv/2.2.3/using/performance/open-files-limit.md +++ b/content/riak/kv/2.2.3/using/performance/open-files-limit.md @@ -175,6 +175,80 @@ set rlim_fd_max=200000 [Reference][blog oracle] +## Mac OS X El Sierra + +Start by checking the current open file limit values with: + +```bash +launchctl limit maxfiles +``` + +The response should look something like this: + +```bash +maxfiles 65536 65536 +``` + +The first column is the soft limit and the last column is the hard limit. + +To change the open files limits on Mac OS X El Capitan, perform the following steps: + +1\. Add the following line to your .bash_profile or analogous file: + +```bash +ulimit -n 65536 200000 +``` + +2\. Save and close the file. Next open /Library/LaunchDaemons/limit.maxfiles.plist (or create it if it doesn't already exist) and add the following settings: + +```/Library/LaunchDaemons/limit.maxfiles.plist + + + + + Label + limit.maxfiles + ProgramArguments + + launchctl + limit + maxfiles + 65536 + 200000 + + RunAtLoad + + ServiceIPC + + + +``` + +3\. Change the owner the new file: + +```bash +sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist +``` + +4\. Load the new settings: + +```bash +sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist +``` + +Check that the settings have been applied: + +```bash +launchctl limit maxfiles +``` + +The response should be: + +```bash +maxfiles 65536 200000 +``` + ## Mac OS X El Capitan Start by checking the current open file limit values with: From ad459b82bfb47e73beb1d87703574521a5279e0e Mon Sep 17 00:00:00 2001 From: Larry Weya Date: Mon, 26 Jun 2017 13:34:29 +0300 Subject: [PATCH 2/3] Update reference to El Capitan --- content/riak/kv/2.2.3/using/performance/open-files-limit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/riak/kv/2.2.3/using/performance/open-files-limit.md b/content/riak/kv/2.2.3/using/performance/open-files-limit.md index dd259d9fb7..13dfecba20 100644 --- a/content/riak/kv/2.2.3/using/performance/open-files-limit.md +++ b/content/riak/kv/2.2.3/using/performance/open-files-limit.md @@ -191,7 +191,7 @@ maxfiles 65536 65536 The first column is the soft limit and the last column is the hard limit. -To change the open files limits on Mac OS X El Capitan, perform the following steps: +To change the open files limits on Mac OS X El Sierra, perform the following steps: 1\. Add the following line to your .bash_profile or analogous file: From 436f6000bf94367d41b4ca92dd7a3a9745702858 Mon Sep 17 00:00:00 2001 From: Larry Weya Date: Mon, 26 Jun 2017 13:35:04 +0300 Subject: [PATCH 3/3] Remove the El prefix --- content/riak/kv/2.2.3/using/performance/open-files-limit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/riak/kv/2.2.3/using/performance/open-files-limit.md b/content/riak/kv/2.2.3/using/performance/open-files-limit.md index 13dfecba20..c96f7214ba 100644 --- a/content/riak/kv/2.2.3/using/performance/open-files-limit.md +++ b/content/riak/kv/2.2.3/using/performance/open-files-limit.md @@ -175,7 +175,7 @@ set rlim_fd_max=200000 [Reference][blog oracle] -## Mac OS X El Sierra +## Mac OS X Sierra Start by checking the current open file limit values with: @@ -191,7 +191,7 @@ maxfiles 65536 65536 The first column is the soft limit and the last column is the hard limit. -To change the open files limits on Mac OS X El Sierra, perform the following steps: +To change the open files limits on Mac OS X Sierra, perform the following steps: 1\. Add the following line to your .bash_profile or analogous file: