Skip to content

Commit 629e143

Browse files
committed
commands: Make error on setting rlimit a warning only
And reduce it to 10000. Closes #3582
1 parent 26aa06a commit 629e143

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎commands/limit_darwin.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ func tweakLimit() {
7575
jww.ERROR.Println("Unable to obtain rLimit", err)
7676
}
7777
if rLimit.Cur < rLimit.Max {
78-
rLimit.Max = 999999
79-
rLimit.Cur = 999999
78+
rLimit.Max = 10000
79+
rLimit.Cur = 10000
8080
err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
8181
if err != nil {
82-
jww.ERROR.Println("Unable to increase number of open files limit", err)
82+
jww.WARN.Println("Unable to increase number of open files limit", err)
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)