​Hi,

​
Looking for a queue or topic that had a large number of unconsumed messages
​ ​
would probably be a good star
​​
t.
​

If your
​server
 has the webconsole activated you can look at the queues and topics,
​ ​
for example if your server had a webconsole on port 8161:

http://<server>:8161//admin/queues.jsp
http://<server>:8161//admin/topics.jsp

​​
If your server has JMX enabled, you could connect to it with JConsole and
browse
​ ​
t
​​
he MBeans for the broker, looking at the MemoryPercentUsage attributes of
the
​ ​
queues and topics.

Or, if the server has the jolokia JMX to HTTP bridge enabled, you can
access the MBeans via that:

​$ ​
curl -s -d
'{"type":"read","mbean":"org.apache.activemq:brokerName=amq-prod-1,destinationName=AL.FAILED,destinationType=Queue,type=Broker","attribute":"MemoryPercentUsage"}'
http://amq-prod-1
​a​
:8161/api/jolokia/ | jq .
​
{
  "timestamp": 1460643204,
  "status": 200,
  "request": {
    "mbean":
"org.apache.activemq:brokerName=amq-prod-1,destinationName=AL.FAILED,destinationType=Queue,type=Broker",
    "attribute": "MemoryPercentUsage",
    "type": "read"
  },
  "value": 0
}

​That example shows me querying my server amq-prod-1a (broker name
amq-prod-1), and asking it to tell me the ​MemoryPercentUsage of the
AL.FAILED queue.  The value happens to be zero in this case, so it's not
using any memory.


Jim

Reply via email to