commands: Make error on setting rlimit a warning only
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Jun 2017 18:32:30 +0000 (20:32 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Jun 2017 18:35:19 +0000 (20:35 +0200)
And reduce it to 10000.

Closes #3582

commands/limit_darwin.go

index b9d977737632f5e4c31ca322e368a592a5b23517..1635c847185fd00ac9a2decab254a885859ad96e 100644 (file)
@@ -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)
                }
        }
 }