Permalink
Browse files

commands: Adjust rlimit to 64000

See #3582
  • Loading branch information...
bep committed Jun 12, 2017
1 parent 629e143 commit ff54b6bddcefab45339d8dc2b13776b92bdc04b9
Showing with 2 additions and 2 deletions.
  1. +2 −2 commands/limit_darwin.go
View
@@ -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.