事象 : Tomcatを停止して待っていたらなんか言われた
- 環境
- Windows10 Pro バージョン1909
- Eclipse IDE for Enterprise Java Developers Version: 2020-09 (4.17.0)
- Apache Tomcat 8.5.61
メッセージが表示されても[OK]ボタンで待っていればそのうち停止する。
Server at localhost is not responding. Do you want to terminate this server? Click OK to terminate the server or click Cancel to continue waiting.
(訳)
localhostのサーバーTomcat v 8.5サーバーが応答していません。このサーバーを終了しますか?[OK] をクリックしてサーバを終了するか、 [Cancel] をクリックして待機を続行します。
原因 : なんかで停止に時間がかかってタイムアウトしたから
If a webapp doesn't cleanup completely, especially with respect to stopping non-daemon threads it starts, Tomcat will fail to shutdown.
Clicking "Stop" has the advantage of providing a timeout.
If Tomcat fails to stop within the timeout, a dialog will appear giving you the option to terminate the server or continue waiting.
(訳)
Webアプリケーションが完全にクリーンアップされない場合、特に起動する非デーモンスレッドの停止に関して、Tomcatはシャットダウンに失敗します。
「停止」をクリックすると、タイムアウトが発生します。
Tomcatがタイムアウト内に停止できない場合は、ダイアログが表示され、サーバを終了するか待機を続けるかを選択できます。
java - Tomcat not shutting down within Eclipse - Stack Overflow
対応 : タイムアウトをのばす
- Tomcatダブルクリック > [Timeouts] > [Stop] > 値を置きくする(デフォルト15sec)
- Tomcatからアプリケーション削除 > Tomcatをクリーン
- 次に使うときに再出風呂いしてTomcatを起動する