You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Lakatos Gyula (Jira)" <ji...@apache.org> on 2020/03/15 09:29:00 UTC

[jira] [Updated] (ARTEMIS-2657) java.lang.Error: Maximum permit count exceeded

     [ https://issues.apache.org/jira/browse/ARTEMIS-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lakatos Gyula updated ARTEMIS-2657:
-----------------------------------
    Description: 
I'm not sure that this is a bug or I misconfigured something but because the whole thing works for days and then stops because of this I think it's the former.
{code:java}
2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64609 documents!2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64609 documents!2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The archived document count are 29171 documents!2020-03-15 00:11:54.922 ERROR 17056 --- [-netty-threads)] org.apache.activemq.artemis.core.client  : AMQ214013: Failed to decode packet
java.lang.Error: Maximum permit count exceeded at java.base/java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:198) ~[na:na] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382) ~[na:na] at java.base/java.util.concurrent.Semaphore.release(Semaphore.java:619) ~[na:na] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditsImpl.receiveCredits(ClientProducerCreditsImpl.java:112) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditManagerImpl.receiveCredits(ClientProducerCreditManagerImpl.java:118) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.handleReceiveProducerCredits(ClientSessionImpl.java:1524) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.spi.core.remoting.SessionContext.handleReceiveProducerCredits(SessionContext.java:121) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.handleReceiveProducerCredits(ActiveMQSessionContext.java:987) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler.handlePacket(ActiveMQSessionContext.java:1068) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:720) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:408) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:385) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1204) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) ~[artemis-core-client-2.11.0.jar:2.11.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.11.0.jar:2.11.0]
2020-03-15 00:11:54.923 ERROR 17056 --- [-netty-threads)] org.apache.activemq.artemis.core.client  : AMQ214031: Failed to decode buffer, disconnect immediately.
java.lang.IllegalStateException: java.lang.Error: Maximum permit count exceeded at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:390) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1204) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) ~[artemis-core-client-2.11.0.jar:2.11.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.11.0.jar:2.11.0]Caused by: java.lang.Error: Maximum permit count exceeded at java.base/java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:198) ~[na:na] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382) ~[na:na] at java.base/java.util.concurrent.Semaphore.release(Semaphore.java:619) ~[na:na] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditsImpl.receiveCredits(ClientProducerCreditsImpl.java:112) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditManagerImpl.receiveCredits(ClientProducerCreditManagerImpl.java:118) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.handleReceiveProducerCredits(ClientSessionImpl.java:1524) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.spi.core.remoting.SessionContext.handleReceiveProducerCredits(SessionContext.java:121) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.handleReceiveProducerCredits(ActiveMQSessionContext.java:987) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler.handlePacket(ActiveMQSessionContext.java:1068) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:720) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:408) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:385) ~[artemis-core-client-2.11.0.jar:2.11.0] ... 22 common frames omitted
2020-03-15 00:11:54.925  WARN 17056 --- [global-threads)] org.apache.activemq.artemis.core.client  : AMQ212037: Connection failure to /127.0.0.1:61616 has been detected: java.lang.Error: Maximum permit count exceeded [code=GENERIC_EXCEPTION]2020-03-15 00:11:56.367  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64630 documents!2020-03-15 00:11:56.367  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The archived document count are 29175 documents!
{code}
 

 

  was:
I'm not sure that this is a bug or I misconfigured something but because the whole thing works for days and then stops because of this I think it's the former.

 

 
{code:java}
2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64609 documents!2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64609 documents!2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The archived document count are 29171 documents!2020-03-15 00:11:54.922 ERROR 17056 --- [-netty-threads)] org.apache.activemq.artemis.core.client  : AMQ214013: Failed to decode packet
java.lang.Error: Maximum permit count exceeded at java.base/java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:198) ~[na:na] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382) ~[na:na] at java.base/java.util.concurrent.Semaphore.release(Semaphore.java:619) ~[na:na] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditsImpl.receiveCredits(ClientProducerCreditsImpl.java:112) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditManagerImpl.receiveCredits(ClientProducerCreditManagerImpl.java:118) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.handleReceiveProducerCredits(ClientSessionImpl.java:1524) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.spi.core.remoting.SessionContext.handleReceiveProducerCredits(SessionContext.java:121) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.handleReceiveProducerCredits(ActiveMQSessionContext.java:987) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler.handlePacket(ActiveMQSessionContext.java:1068) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:720) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:408) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:385) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1204) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) ~[artemis-core-client-2.11.0.jar:2.11.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.11.0.jar:2.11.0]
2020-03-15 00:11:54.923 ERROR 17056 --- [-netty-threads)] org.apache.activemq.artemis.core.client  : AMQ214031: Failed to decode buffer, disconnect immediately.
java.lang.IllegalStateException: java.lang.Error: Maximum permit count exceeded at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:390) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1204) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) ~[artemis-core-client-2.11.0.jar:2.11.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.11.0.jar:2.11.0]Caused by: java.lang.Error: Maximum permit count exceeded at java.base/java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:198) ~[na:na] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382) ~[na:na] at java.base/java.util.concurrent.Semaphore.release(Semaphore.java:619) ~[na:na] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditsImpl.receiveCredits(ClientProducerCreditsImpl.java:112) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditManagerImpl.receiveCredits(ClientProducerCreditManagerImpl.java:118) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.handleReceiveProducerCredits(ClientSessionImpl.java:1524) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.spi.core.remoting.SessionContext.handleReceiveProducerCredits(SessionContext.java:121) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.handleReceiveProducerCredits(ActiveMQSessionContext.java:987) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler.handlePacket(ActiveMQSessionContext.java:1068) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:720) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:408) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:385) ~[artemis-core-client-2.11.0.jar:2.11.0] ... 22 common frames omitted
2020-03-15 00:11:54.925  WARN 17056 --- [global-threads)] org.apache.activemq.artemis.core.client  : AMQ212037: Connection failure to /127.0.0.1:61616 has been detected: java.lang.Error: Maximum permit count exceeded [code=GENERIC_EXCEPTION]2020-03-15 00:11:56.367  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64630 documents!2020-03-15 00:11:56.367  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The archived document count are 29175 documents!
{code}
 

 


> java.lang.Error: Maximum permit count exceeded
> ----------------------------------------------
>
>                 Key: ARTEMIS-2657
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2657
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: ActiveMQ-Artemis-Native
>    Affects Versions: 2.11.0
>            Reporter: Lakatos Gyula
>            Assignee: Clebert Suconic
>            Priority: Minor
>
> I'm not sure that this is a bug or I misconfigured something but because the whole thing works for days and then stops because of this I think it's the former.
> {code:java}
> 2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64609 documents!2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64609 documents!2020-03-15 00:11:50.366  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The archived document count are 29171 documents!2020-03-15 00:11:54.922 ERROR 17056 --- [-netty-threads)] org.apache.activemq.artemis.core.client  : AMQ214013: Failed to decode packet
> java.lang.Error: Maximum permit count exceeded at java.base/java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:198) ~[na:na] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382) ~[na:na] at java.base/java.util.concurrent.Semaphore.release(Semaphore.java:619) ~[na:na] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditsImpl.receiveCredits(ClientProducerCreditsImpl.java:112) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditManagerImpl.receiveCredits(ClientProducerCreditManagerImpl.java:118) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.handleReceiveProducerCredits(ClientSessionImpl.java:1524) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.spi.core.remoting.SessionContext.handleReceiveProducerCredits(SessionContext.java:121) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.handleReceiveProducerCredits(ActiveMQSessionContext.java:987) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler.handlePacket(ActiveMQSessionContext.java:1068) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:720) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:408) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:385) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1204) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) ~[artemis-core-client-2.11.0.jar:2.11.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.11.0.jar:2.11.0]
> 2020-03-15 00:11:54.923 ERROR 17056 --- [-netty-threads)] org.apache.activemq.artemis.core.client  : AMQ214031: Failed to decode buffer, disconnect immediately.
> java.lang.IllegalStateException: java.lang.Error: Maximum permit count exceeded at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:390) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1204) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) ~[artemis-core-client-2.11.0.jar:2.11.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.11.0.jar:2.11.0]Caused by: java.lang.Error: Maximum permit count exceeded at java.base/java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:198) ~[na:na] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1382) ~[na:na] at java.base/java.util.concurrent.Semaphore.release(Semaphore.java:619) ~[na:na] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditsImpl.receiveCredits(ClientProducerCreditsImpl.java:112) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientProducerCreditManagerImpl.receiveCredits(ClientProducerCreditManagerImpl.java:118) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.handleReceiveProducerCredits(ClientSessionImpl.java:1524) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.spi.core.remoting.SessionContext.handleReceiveProducerCredits(SessionContext.java:121) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.handleReceiveProducerCredits(ActiveMQSessionContext.java:987) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext$ClientSessionPacketHandler.handlePacket(ActiveMQSessionContext.java:1068) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:720) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:408) ~[artemis-core-client-2.11.0.jar:2.11.0] at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:385) ~[artemis-core-client-2.11.0.jar:2.11.0] ... 22 common frames omitted
> 2020-03-15 00:11:54.925  WARN 17056 --- [global-threads)] org.apache.activemq.artemis.core.client  : AMQ212037: Connection failure to /127.0.0.1:61616 has been detected: java.lang.Error: Maximum permit count exceeded [code=GENERIC_EXCEPTION]2020-03-15 00:11:56.367  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The processed document count are 64630 documents!2020-03-15 00:11:56.367  INFO 17056 --- [   scheduling-1] c.g.loa.statistics.service.MetricLogger  : The archived document count are 29175 documents!
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)