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