java服务启动超时
最新使用Java Service Wrapper把java程序封装为一个windows服务,但是在启动服务的时候碰到下面的错误:
INFO | wrapper | 2013/01/29 11:46:23 | Waiting to start...INFO | wrapper | 2013/01/29 11:46:28 | Waiting to start...ERROR | wrapper | 2013/01/29 11:46:30 | Startup failed: Timed out waiting for signal from JVM.ERROR | wrapper | 2013/01/29 11:46:30 | JVM did not exit on request, terminatedINFO | wrapper | 2013/01/29 11:46:33 | Waiting to start...
?启动失败,从jvm获得信号超时了,去官网查找配置文件:
??? http://wrapper.tanukisoftware.com/doc/english/prop-startup-timeout.html
??? http://wrapper.tanukisoftware.com/doc/english/prop-ping-timeout.html
可以修改wrapper.conf,设置启动超时时间:
#设置超时时间为2小时wrapper.startup.timeout=7200#设置心跳超时时间为1小时wrapper.ping.timeout=360
?添加配置后,可以正常启动windows服务了