ActiveMQ:'channel inactive for too long' exceptions stop broker messaging

前端 未结 2 1779
说谎
说谎 2021-01-06 02:42

My system has the following parts:

  • ActiveMQ broker exposed on tcp, port 61616
  • 3 Grails/Spring wars that live in their own Tomcat servers, they publish
相关标签:
2条回答
  • 2021-01-06 03:06

    Have you tried the following:

    1. Disable the InactivityMonitor; wireFormat.maxInactivityDuration=0 e.g.

      URL: tcp://localhost:61616?wireFormat.maxInactivityDuration=0

    2. If you don't wish to disable, have you tried setting it to a high number e.g.: URL: tcp://localhost:61616?wireFormat.maxInactivityDuration=5000000 (just an example - use your own time in ms)

    3. Also, ensure that the jar files are the same version for both client and server.

    Hope it helps

    0 讨论(0)
  • 2021-01-06 03:14

    You just need to change the activemq.xml (configuration file):

    1. transportConnectors section:

      transportConnector name="ws" uri="ws://0.0.0.0:61614"
      
    2. change

      transportConnector name="ws" uri="tcp://0.0.0.0:61614"
      

    It works for my windows and linux virtual machines

    0 讨论(0)
提交回复
热议问题