diff --git a/run_websocket.py b/run_websocket.py index 810d71436..3349fda71 100755 --- a/run_websocket.py +++ b/run_websocket.py @@ -425,6 +425,6 @@ if __name__ == '__main__': server = tornado.httpserver.HTTPServer(app) server.bind(options.port, options.host) #server.listen(options.port) - server.start(num_processes=10) + server.start(num_processes=5) print "Run server on %s:%s" % (options.host, options.port) tornado.ioloop.IOLoop.instance().start() diff --git a/service.sh b/service.sh index c86d1c413..f25e1b67a 100755 --- a/service.sh +++ b/service.sh @@ -27,7 +27,7 @@ start() { else daemon python $base_dir/manage.py runserver 0.0.0.0:80 &>> /tmp/jumpserver.log 2>&1 & daemon python $base_dir/run_websocket.py &> /dev/null 2>&1 & - sleep 2 + sleep 4 echo -n "$jump_start" nums=0