2019-08-01 06:04:43,263 | 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: nio+ssl://b-e13f27f2-1fa3-419f-819c-a24277e973a8-2.mq.us-west-2.amazonaws.com:61617?maximumConnections=100&wireFormat.maxFrameSize=104857600
在 amazonMQ 上获得上述异常,早些时候我们使用的是 activeMQ,我们在那里设置了类似的东西
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireformat.maxFrameSize=104857600"/>
</transportConnectors>
在 amazonMQ 中,我们无法找到此类选项,并且代理正在抛出异常。我们在 amazonMQ 支持上检查了 transportConnector :
知道我们如何增加最大连接的大小吗?
最佳答案
如所列 here每个 AWS 账户都可以更改该限制。
您需要打开 AWS 支持工单,请求提高限制
关于amazon-web-services - 如何增加 AmazonMQ 最大连接数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57322739/