How to graceful shutdown tomcat

1k views Asked by At

I want Tomcat graceful shut down.

  • with spring boot 2.2.2 version
  • with external tomcat 9.x (not embedded tomcat)

I tried as below.

  • kill -TERM $(tomcat PID)
  • Apply spring actuator -> call localhost:8080/actuactor/shutdown
  • application.yml server:shutdown:graceful -> not working because my spring boot version is 2.2.2

None of the above three methods were gracefully shutdown. (All terminated immediately.)

How do I shutdown tomcat gracefully?

0

There are 0 answers