Hi, Justin. I turned on InactivityMonitor and now everything works great. I set keepAlive interval in MQTT client for 10 seconds and defaultKeepAliveInterval on MQTT transport connectot in ActiveMQ.xml 60 seconds (if somehow keepAliveInterval from mqtt client will be 0, probably it won't but for sure). If mqtt client unexpectedly disconnect and there is no ping req/resp for 10 seconds connection closed on server side and Active durable subscription becomes Offline and there are connection leaks and message loss is very very low (only if message will be sent to topic subscriber between unexpected disconnect and close connection on server side, but quantity of incoming messages is very low and such probability is very low).
Thank you for moving me in a right way thinking :) -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html