diff --git a/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java b/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java index e1c74e76c5..83646cc670 100755 --- a/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java +++ b/activemq-client/src/main/java/org/apache/activemq/usage/Usage.java @@ -295,6 +295,10 @@ public abstract class Usage implements Service { if (started.compareAndSet(false, true)){ if (parent != null) { parent.addChild(this); + if(getLimit() > parent.getLimit()) { + LOG.info("Usage({}) limit={} should be smaller than its parent limit={}", + new Object[]{getName(), getLimit(), parent.getLimit()}); + } } for (T t:children) { t.start();