The MaxLag mbean is only valid for an active consumer. So while the consumer is actively running, it should be accurate.
On Fri, Oct 3, 2014 at 4:21 AM, Shah, Devang1 <devang1.s...@citi.com> wrote: > Hi, > > Referring to http://kafka.apache.org/documentation.html#java > > > Number of messages the consumer lags behind the producer by > > "kafka.consumer":name="([-.\w]+)-MaxLag",type="ConsumerFetcherManager" > > > > I could not find MBean kafka.consumer when I hooked up jconsole to kafka > server. I am using kafka_2.9.2-0.8.1.1 version of Kafka. > > > Thanks & Regards, > Devang > -- *Regards,* *Ravi*