2

我们的一台 EMS 服务器面临性能问题,因此开始分析与服务器建立的连接。

目前,一位用户使用isStarted=false与我们的服务器创建了 142 个连接,其中大约 50% 的连接是在一个多月前创建的。

创建连接而不启动它的正当理由是什么?

EMS Java API 文档只这么说:

public boolean isStarted()

Indicates whether or not the connection as been started by the client.

Returns:
    true if the connection has been started, false otherwise.

感谢您对此主题的任何进一步解释!

4

1 回答 1

0

应用程序可能只发送消息而不接收任何消息。即使连接停止,也可以发送消息。JMS 1.1 规范第 4.3.3 节第 4 段说A MessageProducer can send messages while a Connection is stopped.。您可能需要检查应用程序以了解这一点。

于 2013-12-10T16:52:41.087 回答