Is it safe to send SIGTERM to JVM

前端 未结 1 1348
北荒
北荒 2021-01-05 06:43

Although JVM will translate SIGTERM and similar signals to shutdown hooks, many service shutdown scripts use a TCP port to initiate a shutdown. (e.g. Tomcat\'s shutdown por

1条回答
  •  一生所求
    2021-01-05 07:08

    As long as Java service uses ShutdownHooks wisely for orderly termination, there is no problem in sending SIGTERM to JVM process. E.g. we use SIGTERM as a primary method for initiating an application shutdown in our large high-load production system (5000+ servers running 80 different Java applications).

    0 讨论(0)
提交回复
热议问题