yipixiaofeiyang commented on issue #14254:
URL: https://github.com/apache/dubbo/issues/14254#issuecomment-2139613489

   > > > > After comparing the changes in 3.1.5 and 3.1.6, I can not find 
issue. can you provide a demo to reproduce it.
   > > > 
   > > > 
   > > > demo很简单, 一个提供者, 一个消费者, 消费者需要用2台服务器+nginx做负载均衡, 注册中心采用nacos, 部署上稍微麻烦了些
   > > 
   > > 
   > > can you upload your demo code on github?
   > 
   > 可以的, 我直接用附件的方式吧 
[provider-parent.zip](https://github.com/apache/dubbo/files/15500819/provider-parent.zip)
   
   服务器上的启动脚本如下, 其实和spring的server.shutdown = graceful效果差不多,  我们生产环境环境一直是这样用的, 
在dubbo3.1.6之前是完全没问题的, 我就懒得改成graceful方式了
   `
   pid=$(ps -ef|grep java| grep ${serverName} |awk '{print $2}');
   echo $pid;
   
   waitcount=0
   while [  "$pid" != ""  ]; do
       if [ "$waitcount" == "0" ]; then
           kill $pid
       fi
       sleep 1
       let "waitcount++"
       if [ "$waitcount" == "30" ]; then
           kill -9 $pid
       fi
       pid=$(ps -ef|grep java| grep $serverName |awk '{print $2}');
   done
   
   nohup /usr/jdk1.8.0_201/bin/java -jar -Xms700m -Xmx700m  *.jar >log.txt &
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to