How to kill Tomcat when running it from Eclipse?

后端 未结 5 2035
粉色の甜心
粉色の甜心 2021-01-31 03:25

I am running the Tomcat that gets delivered with your Eclipse download (no, I don\'t want to download and install the entire Tomcat), and sometimes it hangs when stopping or res

5条回答
  •  鱼传尺愫
    2021-01-31 03:49

    You can set a timeout on startup and shutdown for your Tomcat server in Eclipse. If these timeouts are exceeded, Eclipse will pop up a message asking you if you want to kill it, or keep waiting.

    To set these, double-click the name of the server in your Servers tab. It'll open a window like this:

    There's a Timeouts section on the right hand side. I set startup to a day (so I can debug startup without it timing out), and shutdown to 30 seconds to be generous (usually this can be very short, since most apps can survive a forced shutdown with no issues).

提交回复
热议问题