Skip to content

Commit

Permalink
commands: Make error on setting rlimit a warning only
Browse files Browse the repository at this point in the history
And reduce it to 10000.

Closes #3582
  • Loading branch information
bep committed Jun 12, 2017
1 parent 26aa06a commit 629e143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/limit_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit 629e143

Please sign in to comment.