ActiveMq+zk集群问题
环境:win7
启动三个mq实例+三个zk实例
生成者生成10w+条消息,让消费者消费
java程序中启动一个监听器监听消息队列,在处理到2w+的时候报如下错误,消费行为中止
org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful
信息: Successfully refreshed JMS Connection
二月 10, 2017 11:50:54 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-apr-8009"]
二月 10, 2017 11:50:54 上午 org.springframework.jms.listener.DefaultMessageListenerContainer handleListenerSetupFailure
警告: Setup of JMS message listener invoker failed for destination 'queue://textQueueMq' - trying to recover. Cause: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The driver was unable to create a connection due to an inability to establish the client portion of a socket.
This is usually caused by a limit on the number of sockets imposed by the operating system. This limit is usually configurable.
For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel or system reconfiguration may also be required.
For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q196271).
二月 10, 2017 11:50:54 上午 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful
信息: Successfully refreshed JMS Connection
目测是因为win环境问题,但是我认为是配置的原因。
请大牛们帮忙看下,给支支招。谢谢!