add ulimit
This commit is contained in:
parent
a14b797559
commit
c37e731eef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue