Apache Artemis - logs AMQ212037 connection failure and connection reset by peer [code=GENERIC_EXCEPTION]

强颜欢笑 提交于 2020-08-10 18:56:16

问题


Artemis is configured in HA, with one master and a backup slave in different VM's.

The broker.xml configuration uses static discovery options and the acceptors, 61616 supporing all the protocols, and AMQP.

The configuration is similar to this link

artemis.log (below issue is continuously logged)

WARN [org.apache.activemq.artemis.core.client] AMQ212037: Connection failure to <ip-address> has been detected: readAddress(..) failed: Connection reset by peer [code=GENERIC_EXCEPTION]

From the logs, the ip-address info it seems to be one of the clients/consumer is pushing this info.

In another post link it was recommended to use confirmationWindowSize. But not sure whether this is applicable for my case.

The client configuration is using Camel and the ActiveMQ OpenWire client version 5.13.2 to connect:

    <bean id="conxnFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
      <property name="brokerURL" value="tcp://domain-name:port" />
    </bean>

    <bean id="pooledconxnFactory" class="org.apache.activemq.pool.PooledConnectionFactory" init-method="start" destroy-method="stop">
      <property name="maxConnections" value="5" />
      <property name="connectionFactory" ref="conxnFactory" />
    </bean>

    <bean id="config" class="org.apache.camel.component.jms.JmsConfiguration">
      <property name="connectionFactory" ref="pooledconxnFactory" />
      <property name="concurrentConsumers" value="5" />
    </bean>

    <bean id="jmsqueue" class="org.apache.activemq.camel.component.ActiveMQComponent">
      <property name="configuration" ref="config" />
    </bean>
    
    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
      <endpoint id="inputQueue" uri="jmsqueue:queue:dataqueue1" />
      
      <route>
        <from uri="ref:inputQueue" />
        <!-- process -->
        <to uri="ref:outputQueue"/> <!-- endpoint defined already not included in here-->
        ...
        ...

Any inputs/ideas, why this occurs.

来源:https://stackoverflow.com/questions/63235169/apache-artemis-logs-amq212037-connection-failure-and-connection-reset-by-peer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!