Tomcat无缘无故停止

来源:互联网 发布:show java 3.0汉化版 编辑:程序博客网 时间:2024/04/29 11:08

最近遇到个问题,有个线上的tomcat总是运行一会儿就自动停止了,莫名其妙的没有任何报错。

在网上搜了一下,发现是跟这篇文章同样的一个原因

http://www.77dev.com/2014/07/tomcat-randomly-shuts-down-without-any-logs.html


原来罪魁祸首就是启动脚本里的一个 tail -f

tail -f shows the logs continuously so the script doesn't finish it's execution automatically. When the ssh connection timed out while my script was still running,shell killed it WITH IT'S CHILD PROCESSES - a Tomcat server among others and that was the whole problem. 


把tail -f去掉,问题解决。


0 0
原创粉丝点击