Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

JBoss EAP の HornetQ が "Client connection failed" 警告メッセージを表示する

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

以下の警告メッセージがログに記録されます。このメッセージは何を示していますか?

WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected:Did not receive data from /host:port.It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed.You also might have configured connection-ttl and client-failure-check-period incorrectly.Please check user manual for more information.The connection will now be closed.[code=3]
WARN  [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Client connection failed, clearing up resources for session <uuid>
WARN  [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Cleared up resources for session <uuid>
  • 警告メッセージ HQ212037: Connection failure has been detected が jms サーバーのログファイルに定期的に表示されます。

Resolution

この問題を解決するには、以下を実施してください。

  • クライアントが終了する際に、サーバーへの接続を適切に閉じていることを確認してください。これは、通常、finaly ブロックで行われます。

  • クライアントがサーバーへの接続を切断している可能性があるため、ネットワークを調べてください。適切な JMS 接続ファクトリーで <connection-ttl> (デフォルトは 60000ms) および <check-period> (デフォルトは 30000ms) を調整することを検討してください。ネットワークの遅延が問題になる場合は、この値を大きくすると問題が軽減されます。

Root Cause

このメッセージは、サーバーへのクライアント接続で問題が発生していることを示しています。クライアントが応答していないことをサーバーが判断すると、 クライアントの接続に関連するサーバーサイドのリソースを削除して、この警告メッセージを発生します。

これは、たとえば、クライアントが終了した時にリソースが閉じるように適切にコーディングされていなかったり、ネットワークの問題で接続が切断されたりすることが原因で発生します。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments