java.net.SocketException: No buffer space available (maximum connections reached?): recv failed
这是ACTIVEMQ报的错误,如何解决?
找了很多。
wireFormat.maxInactivityDuration=1000
wireFormat.maxInactivityDuration=0
都测试过,应该不是它引起的,配置文件内容如下:
- <beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.org/config/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://activemq.org/config/1.0 http://activemq.apache.org/schema/activemq-core.xsd http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
- <!-- Allows us to use system properties as variables in this configuration file
-->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
- <broker xmlns="http://activemq.org/config/1.0" brokerName="QM.000000" useJmx="true" dataDirectory="${activemq.base}/data">
- <!-- Destination specific policies using destination names or wildcards
-->
- <!-- The transport connectors ActiveMQ will listen to
-->
- <transportConnectors>
<transportConnector name="openwire" uri="tcp://localhost:61616?wireFormat.maxInactivityDuration=1000" />
</transportConnectors>
<commandAgent xmlns="http://activemq.org/config/1.0" />
- <!-- An embedded servlet engine for serving up the Admin console
-->
- <jetty xmlns="http://mortbay.com/schemas/jetty/1.0">
- <connectors>
<nioConnector port="8161" />
</connectors>
- <handlers>
<webAppContext contextPath="/admin" resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true" />
<webAppContext contextPath="/demo" resourceBase="${activemq.base}/webapps/demo" logUrlOnStart="true" />
</handlers>
</jetty>
</beans>
------解决方案--------------------
------解决方案--------------------
你的配置该没问题,是不是你socket被大量资源占用,或者说你的机器中毒了?