-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
JBoss A-MQ 6.3
-
None
-
False
-
False
-
-
undefined
-
-
When the broker is using a JDBC database as a message store, it appears to store one row in the ACTIVEMQ_MSGS table for each pending message for each durable subscriber to each topic. It is possible for a durable subscriber to disconnect, and not reconnect for a long time, if ever. As long as it is disconnected, rows accumulate in the ACTIVEMQ_MSGS table.
Over time, as durable subscribers come and go, the ACTIVEMQ_MSGS table can get very large – tens of millions of rows in this case. That doesn't stop the broker working when it is up, but start-up and failover can take tens of minutes. This means that there can be significant interruptions in service when, in a system using simple disk storage, there would not be.
I had thought that destroying the inactive subscriptions using the Hawtio console would cause the associated database rows to be cleaned up, but it does not.