diff --git a/script/msg_gateway_start.sh b/script/msg_gateway_start.sh index c9bcf953c..b2d30a586 100644 --- a/script/msg_gateway_start.sh +++ b/script/msg_gateway_start.sh @@ -25,6 +25,9 @@ fi #Waiting port recycling sleep 3 cd ${msg_gateway_binary_root} + +ulimit -n 300000 + for ((i = 0; i < ${#ws_ports[@]}; i++)); do nohup ./${msg_gateway_name} -rpc_port ${rpc_ports[$i]} -ws_port ${ws_ports[$i]} >>../logs/${msg_gateway_name}.$(date +%Y-%m-%d).log 2>&1 & done