您的位置:首页 > 运维架构 > Tomcat

Server Tomcat v6.0 Server at localhost was unable to start within 40 seconds.

2016-03-16 17:46 537 查看
服务器启动超时,有可能是因为启动这个服务时,需要加载的东西太多了,这种情况就可以将启动超时设置的长一点。

做法是,将这个webProject 所在的workplace路径,如:E:\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml。找出servers.xml文件里面的 start-timeout参数

<server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v6.0 Server at localhost-config" hostname="localhost" id="Tomcat v6.0 Server at localhost" name="Tomcat v6.0 Server at localhost" runtime-id="Apache Tomcat v6.0" saveSeparateContextFiles="true"
server-type="org.eclipse.jst.server.tomcat.60" server-type-id="org.eclipse.jst.server.tomcat.60"
start-timeout="40" stop-timeout="15" testEnvironment="false" timestamp="31">

可以把start-timeout="40"改做80.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  server tomcat 服务器