修改tomcat的启动时间

本文提供了解决使用Eclipse工作空间管理大量项目时遇到的Tomcat服务器启动时间过短导致频繁重启的问题的方法。通过修改servers.xml文件中的启动超时时间设置,避免了每次都需要查找解决方案的麻烦。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

近来老是重新发布项目,项目很大得修改重启时间,记录一下,免得每次查找

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. 


修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。 
<servers> 
<server hostname="localhost" id="JBoss v5.0 at localhost" name="JBoss v5.0 at 
localhost" runtime-id="JBoss v5.0" server-type="org.eclipse.jst.server.generic.jboss5" 
server-type-id="org.eclipse.jst.server.generic.jboss5" start-timeout="1000" stop- 
timeout="15" timestamp="0"> 
<map jndiPort="1099" key="generic_server_instance_properties" port="8090" 
serverAddress="127.0.0.1" serverConfig="default"/> 
<rver> 
<rvers> 
把 start-timeout="45" 改为  start-timeout="1000" 或者更长 
不需要重启eclipse,再次运行项目就可以啦。

关注我,获取400个的赚钱金点子,轻松开启程序员的副业生涯

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值