Java service is restarted 4 or 5 times

女生的网名这么多〃 提交于 2019-12-01 17:15:14

Wrapper software communicates with your started JVM very often and checks whether it's alive or not. When you make your application sleep, that communication fails and the wrapper notifies the process hung and attempts to restart it. To avoid this you have to configure the wrapper.ping.timeout in your wrapper conf. To avoid timeout set the property to "0".

Check more details on ping timeout- wrapper.ping.timeout configuration

If you have any timeout issue in the start up of the application (The default timeout value is 30 seconds) Change the value in wrapper conf to "0" in order to avoid restarting application. wrapper.startup.timeout=0

Check more details on startup timeout - wrapper.startup.timeout configuration

Just a hunch, but my guess is that when you make your application sleep, you also stop the watchdog mechanism from Tanukisoft to respond to probes, so Tanuki thinks your application is frozen.

Have a look at the integration methods for standalone apps with Tanukisoft : http://wrapper.tanukisoftware.com/doc/english/integrate.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!