tomcat6 启动超时问题

当启动tomcat时候出现 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 的错误,那表示你的tomcat启动超时了,有时候你重新启动下就好了,但有时需要重新启动很多次,如果你不想这样的话,你只需修改下tomcat的启动 时间就行了

步骤如下:

修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。

把 start-timeout="45" 改为 start-timeout="1000" 或者更长 重启eclipse就可以了

2.具体现象就是eclipse在启动tomcat时, 会报错: “Timeout waiting for Tomcatv6.0Server @ localhost to start. Server did not start after 45s”的错误。尤其是在debug时更加容易出现这个问题。通过错误提示来看,是因为tomcat启动时间超过了45m,于是被终止了启动。出现这个问 题,可能是应用程序比较庞大,有很多启动加载项和初始化工作,或者log太多。想着加大tomcat启动超时的时间,却在我的eclipse3.3中一直 没有找到相关项。通过google还是找到了这个问题的解决办法,具体如下:在eclipse中找菜单winodw -> preferences-> server -> 找 Server timeoutdelay下拉列表项目。选择你想要的。我选择unlimited让其不再有时间限制。就是说,服务启动多长时间都无所谓。问题就此解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值