fix ulimit

This commit is contained in:
邱博亞 2023-04-23 08:40:05 +08:00
parent c37e731eef
commit 6b84921f59
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?
`ulimit -n100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
`ulimit -n 100000 && #{Binary} #{scheme}://#{ip}#{uri.request_uri} --host=#{host} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
else
`ulimit -n100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
`ulimit -n 100000 && #{Binary} #{@setting.url} --listen=#{SocketFile} -c#{concurrent} --summary > #{LogFile}`
end
end
max_wait = 10