add ulimit

This commit is contained in:
邱博亞 2023-04-22 23:12:24 +08:00
parent a14b797559
commit c37e731eef
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ class Admin::PlowController < OrbitAdminController
scheme = uri.scheme
Thread.new do
if !ip.blank?
`#{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
`ulimit -n100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
else
`#{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
`ulimit -n100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
end
end
max_wait = 10