ref: 629e1439e819a7118ae483381d4634f16d3474dd
parent: 26aa06a3db57ab7134a900d641fa2976f7971520
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Jun 12 16:32:30 EDT 2017
commands: Make error on setting rlimit a warning only And reduce it to 10000. Closes #3582
--- a/commands/limit_darwin.go
+++ b/commands/limit_darwin.go
@@ -75,11 +75,11 @@
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)
}
}
}