0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Server at localhost is not responding. Do you want to terminate this server?

Posted at

事象 : Tomcatを停止して待っていたらなんか言われた

  • 環境
    • Windows10 Pro バージョン1909
    • Eclipse IDE for Enterprise Java Developers Version: 2020-09 (4.17.0)
    • Apache Tomcat 8.5.61

メッセージが表示されても[OK]ボタンで待っていればそのうち停止する。
image.png

メッセージ
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

対応 : タイムアウトをのばす

  1. Tomcatダブルクリック > [Timeouts] > [Stop] > 値を置きくする(デフォルト15sec)
  2. Tomcatからアプリケーション削除 > Tomcatをクリーン
  3. 次に使うときに再出風呂いしてTomcatを起動する

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?