activemq 連接數超過100


本地測試mq連接數超過100報錯

項目報錯:

org.springframework.jms.IllegalStateException: javax.jms.JMSException: Cannot send, channel has already failed: tcp://127.0.0.1:61616; nested exception is javax.jms.IllegalStateException: javax.jms.JMSException: Cannot send, channel has already failed: tcp://127.0.0.1:61616
at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:279)
at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:169)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:487)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:559)
at com.cc.activemq.SenderServicesImpl.sendMessage(SenderServicesImpl.java:385)
at com.cc.activemq.SenderServices.sendTestMsg(SenderServices.java:171)
at com.cc.activemq.SenderServices.main(SenderServices.java:178)
Caused by: javax.jms.IllegalStateException: javax.jms.JMSException: Cannot send, channel has already failed: tcp://127.0.0.1:61616

activemq.log報錯:

2017-08-17 09:54:42,481 | ERROR | Could not accept connection : org.apache.activemq.transport.tcp.ExceededMaximumConnectionsException: Exceeded the maximum number of allowed client connections. See the 'maximumConnections' property on the TCP transport configuration URI in the ActiveMQ configuration file (e.g., activemq.xml) | org.apache.activemq.broker.TransportConnector | ActiveMQ Transport Server Thread Handler: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM