@@ -54,7 +54,7 @@ Most operating systems can change the open-files limit using the `ulimit
54
54
-n` command. Example:
55
55
56
56
``` bash
57
- ulimit -n 65536
57
+ ulimit -n 200000
58
58
```
59
59
60
60
However, this only changes the limit for the ** current shell session** .
@@ -68,7 +68,7 @@ controlled by `sysctl`.
68
68
69
69
``` bash
70
70
sysctl fs.file-max
71
- fs.file-max = 50384
71
+ fs.file-max = 200000
72
72
```
73
73
74
74
As seen above, it is generally set high enough for Riak. If you have
@@ -82,15 +82,15 @@ desired hard and soft limits:
82
82
83
83
``` config
84
84
riak soft nofile 4096
85
- riak hard nofile 65536
85
+ riak hard nofile 200000
86
86
```
87
87
88
88
On Ubuntu, if you’re always relying on the init scripts to start Riak,
89
89
you can create the file ` /etc/default/riak ` and specify a manual limit
90
90
like so:
91
91
92
92
``` bash
93
- ulimit -n 65536
93
+ ulimit -n 200000
94
94
```
95
95
96
96
This file is automatically sourced from the init script, and the Riak
@@ -157,8 +157,8 @@ the new limits are set with the following command:
157
157
1 . Edit ` /etc/security/limits.conf ` and append the following lines to
158
158
the file:
159
159
160
- <div><pre><code>* soft nofile 65536
161
- * hard nofile 65536
160
+ <div><pre><code>* soft nofile 200000
161
+ * hard nofile 200000
162
162
</code></pre></div>
163
163
164
164
2 . Save and close the file.
@@ -184,7 +184,7 @@ increase the per-process limit on Solaris, add the following line to
184
184
` /etc/system ` :
185
185
186
186
``` config
187
- set rlim_fd_max=65536
187
+ set rlim_fd_max=200000
188
188
```
189
189
190
190
[ Reference] ( http://blogs.oracle.com/elving/entry/too_many_open_files )
@@ -218,8 +218,8 @@ contains the following XML configuration:
218
218
<string >launchctl</string >
219
219
<string >limit</string >
220
220
<string >maxfiles</string >
221
- <string >65536 </string >
222
- <string >65536 </string >
221
+ <string >200000 </string >
222
+ <string >200000 </string >
223
223
</array >
224
224
<key >RunAtLoad</key >
225
225
<true />
@@ -229,7 +229,7 @@ contains the following XML configuration:
229
229
</plist >
230
230
```
231
231
232
- This will set the open files limit to 65536 . The second plist
232
+ This will set the open files limit to 200000 . The second plist
233
233
configuration file should be stored in
234
234
` /Library/LaunchDaemons/limit.maxproc.plist ` with the following
235
235
contents:
@@ -269,14 +269,14 @@ setting the at the session level as well by appending the following
269
269
lines to your ` bashrc ` , ` bashprofile ` , or analogous file:
270
270
271
271
``` bash
272
- ulimit -n 65536
272
+ ulimit -n 200000
273
273
ulimit -u 2048
274
274
```
275
275
276
276
Like the plist files, your ` bashrc ` or similar file should have
277
277
` -rw-r--r-- ` permissions. At this point, you can restart your computer
278
278
and enter ` ulimit -n ` into your terminal. If your system is configured
279
- correctly, you should see that ` maxfiles ` has been set to 65536 .
279
+ correctly, you should see that ` maxfiles ` has been set to 200000 .
280
280
281
281
### Adjusting Open File Limits in Older Versions of OS X
282
282
0 commit comments