summaryrefslogtreecommitdiffstats
path: root/commands/limit_darwin.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-12 20:43:19 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-12 20:43:19 +0200
commitff54b6bddcefab45339d8dc2b13776b92bdc04b9 (patch)
treeb5054c04d88b4008567ff73ef86dbbf17dfdada0 /commands/limit_darwin.go
parent629e1439e819a7118ae483381d4634f16d3474dd (diff)
commands: Adjust rlimit to 64000
See #3582
Diffstat (limited to 'commands/limit_darwin.go')
-rw-r--r--commands/limit_darwin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go
index 1635c8471..9246f4497 100644
--- a/commands/limit_darwin.go
+++ b/commands/limit_darwin.go
@@ -75,8 +75,8 @@ func tweakLimit() {
jww.ERROR.Println("Unable to obtain rLimit", err)
}
if rLimit.Cur < rLimit.Max {
- rLimit.Max = 10000
- rLimit.Cur = 10000
+ rLimit.Max = 64000
+ rLimit.Cur = 64000
err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
if err != nil {
jww.WARN.Println("Unable to increase number of open files limit", err)