commands: Adjust rlimit to 64000
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Jun 2017 18:43:19 +0000 (20:43 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Jun 2017 18:43:19 +0000 (20:43 +0200)
See #3582

commands/limit_darwin.go

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