commit 629e1439e819a7118ae483381d4634f16d3474dd
parent 26aa06a3db57ab7134a900d641fa2976f7971520
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Mon, 12 Jun 2017 20:32:30 +0200
commands: Make error on setting rlimit a warning only
And reduce it to 10000.
Closes #3582
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go
@@ -75,11 +75,11 @@ func tweakLimit() {
jww.ERROR.Println("Unable to obtain rLimit", err)
}
if rLimit.Cur < rLimit.Max {
- rLimit.Max = 999999
- rLimit.Cur = 999999
+ rLimit.Max = 10000
+ rLimit.Cur = 10000
err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
if err != nil {
- jww.ERROR.Println("Unable to increase number of open files limit", err)
+ jww.WARN.Println("Unable to increase number of open files limit", err)
}
}
}