How to fix Eclipse Tomcat startup timeout in 45 seconds ?, Eclipsetomcat

Source: Internet
Author: User
Tags apache tomcat

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.