Skip to content

Commit

Permalink
commands: Adjust rlimit to 64000
Browse files Browse the repository at this point in the history
See #3582
bep committed Jun 12, 2017
1 parent 629e143 commit ff54b6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/limit_darwin.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ff54b6b

Please sign in to comment.