ActiveMQScheduledLeaseLock live lock successful renew tooks 10007 ms, while is supposed to take <2000 ms

Solution Verified - Updated -

Issue

  • The AMQ Broker service stopped and logs shows the following traces:
WARN  [org.apache.activemq.artemis.core.server.impl.jdbc.ActiveMQScheduledLeaseLock] live lock renew has failed
java.lang.IllegalStateException: java.sql.SQLRecoverableException: Closed Connection
    at org.apache.activemq.artemis.core.server.impl.jdbc.JdbcLeaseLock.renew(JdbcLeaseLock.java:239) ~[artemis-server-2.28.0.redhat-00012.jar:2.28.0.redhat-00012]
    at org.apache.activemq.artemis.core.server.impl.jdbc.ActiveMQScheduledLeaseLock.run(ActiveMQScheduledLeaseLock.java:101) ~[artemis-server-2.28.0.redhat-00012.jar:2.28.0.redhat-00012]
    at org.apache.activemq.artemis.core.server.ActiveMQScheduledComponent.runForExecutor(ActiveMQScheduledComponent.java:314) ~[artemis-commons-2.28.0.redhat-00012.jar:2.28.0.redhat-00012]
    at org.apache.activemq.artemis.core.server.ActiveMQScheduledComponent.lambda$bookedRunForScheduler$2(ActiveMQScheduledComponent.java:321) ~[artemis-commons-2.28.0.redhat-00012.jar:2.28.0.redhat-00012]
    at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:57) ~[artemis-commons-2.28.0.redhat-00012.jar:?]
    at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:32) ~[artemis-commons-2.28.0.redhat-00012.jar:?]
    at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:68) ~[artemis-commons-2.28.0.redhat-00012.jar:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
    at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) ~[artemis-commons-2.28.0.redhat-00012.jar:?]
Caused by: java.sql.SQLRecoverableException: Closed Connection
    at oracle.jdbc.driver.PhysicalConnection.requireOpenConnection(PhysicalConnection.java:11775) ~[ojdbc11.jar:21.6.0.0.0]
    at oracle.jdbc.driver.PhysicalConnection.setAutoCommit(PhysicalConnection.java:2596) ~[ojdbc11.jar:21.6.0.0.0]
    at org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:537) ~[commons-dbcp2-2.7.0.redhat-00001.jar:2.7.0.redhat-00001]
    at org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:537) ~[commons-dbcp2-2.7.0.redhat-00001.jar:2.7.0.redhat-00001]
    at org.apache.commons.dbcp2.DelegatingConnection.setAutoCommit(DelegatingConnection.java:537) ~[commons-dbcp2-2.7.0.redhat-00001.jar:2.7.0.redhat-00001]
    at org.apache.activemq.artemis.core.server.impl.jdbc.JdbcLeaseLock.renew(JdbcLeaseLock.java:236) ~[artemis-server-2.28.0.redhat-00012.jar:2.28.0.redhat-00012]
    ... 9 more
ERROR [org.apache.activemq.artemis.core.server.impl.jdbc.ActiveMQScheduledLeaseLock] live lock successful renew tooks 10007 ms, while is supposed to take <2000 ms

Environment

  • Red Hat AMQ 7.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content