How to fix Eclipse Tomcat startup timeout in 45 seconds ?, Eclipsetomcat
Proposition: how to fix the problem that the default startup timeout is 45 seconds when Tomcat is started in Eclipse?
Start Tomcat in Eclipse's J2EE project to debug Servlet and so on. After the breakpoint, you will encounter the problem of 45 seconds of tomcat startup timeout. The following is a solution to this problem:
First find this file, where\ Your workspaceIs the directory of the Workspace of your project:
\ Your workspace \. metadata \. plugins \ org. eclipse. wst. server. core \ servers. xml
The content after opening servers. xml is roughly as follows:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><servers><server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v8.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v8.0 Server at localhost" name="Tomcat v8.0 Server at localhost" runtime-id="Apache Tomcat v8.0" server-type="org.eclipse.jst.server.tomcat.80" server-type-id="org.eclipse.jst.server.tomcat.80" start-timeout="45" stop-timeout="15" testEnvironment="true" timestamp="13"><list key="modules" value0="spring_mvc3::org.eclipse.jst.jee.server:spring_mvc3::jst.web::3.0"/></server></servers>
Change the start-timeout parameter from 45 to 1800 (unit: seconds ). (Note: This method supports a maximum of 1800 seconds, that is, 30 minutes)
Restart Eclipse to take effect.
(Note: The landlord passed the test in Eclipse luna SR2 (v4.4.2) Build id: 20150219-0600 + Tomcat v8.0. I did not find the Server setting interface mentioned on stackoverflow.com in Eclipse luna SR2, the above method is found in the first article below .)
Refer:
Http://stackoverflow.com/questions/4845219/change-tomcat-servers-timeout-in-eclipse
Http://stackoverflow.com/questions/104640/how-can-i-disable-the-eclipse-server-startup-timeout