本地测试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