jmx - Negative count in ActiveMQ pending message -
i monitoring activemq using jmx . using below link activemq summary
http://localhost:8161/api/jolokia/read/org.apache.activemq:type=broker,brokername=localhost/brokerid,totalenqueuecount,totaldequeuecount,totalconsumercount,totalmessagecount,totalconnectionscount,totalconsumercount,totalproducercount,memorylimit,memorypercentusage,storelimit,storepercentusage
at time t1
i sending 100 message activemq didn't dequeue message.now summary likes below
{ "timestamp" : 1437996108, "status" : 200, "request" : { "mbean" : "org.apache.activemq:brokername=localhost,type=broker", "attribute" : ["brokerid", "totalenqueuecount", "totaldequeuecount", "totalconsumercount", "totalmessagecount", "totalconnectionscount", "totalconsumercount", "totalproducercount", "memorylimit", "memorypercentusage", "storelimit", "storepercentusage"], "type" : "read" }, "value" : { "brokerid" : "id:synclap5489-54676-1437995895016-0:1", "totalconnectionscount" : 100, "totaldequeuecount" : 0, "storelimit" : 104857600, "totalconsumercount" : 0, "totalmessagecount" : 100, "totalproducercount" : 0, "memorypercentusage" : 0, "storepercentusage" : 9, "totalenqueuecount" : 100, "memorylimit" : 739717939 } }
and stopped activemq server 100 message in pending status.
at time t2
started activemq again , sent 100 message not deque message. json data below
{ "timestamp" : 1437996721, "status" : 200, "request" : { "mbean" : "org.apache.activemq:brokername=localhost,type=broker", "attribute" : ["brokerid", "totalenqueuecount", "totaldequeuecount", "totalconsumercount", "totalmessagecount", "totalconnectionscount", "totalconsumercount", "totalproducercount", "memorylimit", "memorypercentusage", "storelimit", "storepercentusage"], "type" : "read" }, "value" : { "brokerid" : "id:synclap5489-55183-1437996657303-0:1", "totalconnectionscount" : 100, "totaldequeuecount" : 0, "storelimit" : 104857600, "totalconsumercount" : 0, "totalmessagecount" : 100, "totalproducercount" : 0, "memorypercentusage" : 0, "storepercentusage" : 9, "totalenqueuecount" : 100, "memorylimit" : 739717939 } }
after deque
after dequeue message getting json data below
{ "timestamp" : 1437997015, "status" : 200, "request" : { "mbean" : "org.apache.activemq:brokername=localhost,type=broker", "attribute" : ["brokerid", "totalenqueuecount", "totaldequeuecount", "totalconsumercount", "totalmessagecount", "totalconnectionscount", "totalconsumercount", "totalproducercount", "memorylimit", "memorypercentusage", "storelimit", "storepercentusage"], "type" : "read" }, "value" : { "brokerid" : "id:synclap5489-55183-1437996657303-0:1", "totalconnectionscount" : 101, "totaldequeuecount" : 200, "storelimit" : 104857600, "totalconsumercount" : 1, "totalmessagecount" : -100, "totalproducercount" : 0, "memorypercentusage" : 0, "storepercentusage" : 9, "totalenqueuecount" : 100, "memorylimit" : 739717939 } }
totaldequeuecount changes 200 totalenqueuecount remains 100 totalmessagecount changes -100.
my question :
why getting negative value in totalmessagecount ?
why happen when broker has been restarted pending message ?
how resolve ?
Comments
Post a Comment