Created
June 20, 2017 12:42
-
-
Save maurorappa/800ac7a114fd9a16a30dc178a12d1407 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have two artemis goodies: | |
1) to see how many messages went in the broker | |
curl -s http://$BROKER_IP:8161/jolokia/read/org.apache.activemq.artemis:brokerName=\%22default\%22,module=JMS,name=*,serviceType=Queue,type=Broker/MessagesAdded,MessageCount,Name%7Cjq '.[]' | awk '/MessagesAdded/ { sum+=$2}END {print sum}' | |
you run before and after the test and you know how much c**p flew around | |
2) to find any queue with messages pending | |
curl -s http://$BROKER_IP:8161/jolokia/read/org.apache.activemq.artemis:brokerName=\%22default\%22,module=JMS,name=*,serviceType=Queue,type=Broker/MessagesAdded,MessageCount,Name%7Cjq '.[]' | awk '/MessageCount/ { if (substr($2,1,1) > 0 ) {print $0}}' | |
of course DLQ will be there...but temporarly other queue can appear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment