mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
@@ -23,6 +23,7 @@ func SetUlimit(limit uint64) {
|
||||
}
|
||||
|
||||
rLimit.Cur = limit
|
||||
rLimit.Max = limit
|
||||
log.Info().Uint64("limit", rLimit.Cur).Msg("set current ulimit")
|
||||
err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user