Author |
Message
|
ivanachukapawn |
Posted: Wed Aug 24, 2011 5:17 am Post subject: amqsmon output puzzle |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
These totals from the output of amqsmon
Quote: |
total failed gets = 2988
************* 'D.LISTEN' - '2011-08-12' ******************
total non-persistent gets: 0
total persistent gets: 4512
total non-persistent puts: 0
total persistent puts: 3640
total non-persistent put1s: 0
total persistent put1s: 0
node:/home/id/awkdev #
|
are puzzling. The number of persistent gets consistently much greater than the number of persistent puts. That should be rather difficult to explain unless failed GETS were being counted in total persistent gets. However, the total of failed gets = 2988 - (I assume this total is a count of attempted GETS which receive 2033) - and if I adjust total persistent gets ( total persistent gets - total failed gets) I won't have a total that makes sense (the get total not being large enough). Anyone have an idea as to what is wrong with these stats? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 24, 2011 5:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Is the application using BROWSE then GET? |
|
Back to top |
|
 |
ivanachukapawn |
Posted: Wed Aug 24, 2011 5:42 am Post subject: |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
mqjeff,
Somehow your question is as puzzling to me as the original puzzle. amqsmon has separate stats for browse
Quote: |
BrowseCount: [0, 0]
BrowseFailCount: 0
|
Hypothetically, if the application does a browse and then a GET (I will investigate in another department to see if this is whats going on) how would that help to explain the statistics? I have a very large number of failed gets and a much larger number of gets than puts. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 24, 2011 5:50 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
the heart of my question is, "is it possible that the application is getting the same message more than once".
I don't know off the top of my head if the # of Browses will be included in that total # of gets.
I agree, otherwise, that the total number of successful gets and the total number of failed gets should add up to exactly the total number of gets.
I do not necessarily agree that the total number of puts should add up to the total number of gets, unless you can guarantee that the queue was empty before you ran amqsmon and empty before you stopped it.
You also do not show any number of failed puts - although again I don't remember if this is a valid statistic. I'd have to spend a fair amount of time reviewing all of the docs on this myself if I were in your shoes. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 24, 2011 7:27 am Post subject: Re: amqsmon output puzzle |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
ivanachukapawn wrote: |
These totals from the output of amqsmon
Quote: |
total failed gets = 2988
************* 'D.LISTEN' - '2011-08-12' ******************
total non-persistent gets: 0
total persistent gets: 4512
total non-persistent puts: 0
total persistent puts: 3640
total non-persistent put1s: 0
total persistent put1s: 0
node:/home/id/awkdev #
|
are puzzling. The number of persistent gets consistently much greater than the number of persistent puts. That should be rather difficult to explain unless failed GETS were being counted in total persistent gets. However, the total of failed gets = 2988 - (I assume this total is a count of attempted GETS which receive 2033) - and if I adjust total persistent gets ( total persistent gets - total failed gets) I won't have a total that makes sense (the get total not being large enough). Anyone have an idea as to what is wrong with these stats? |
Your assumption on the gets is not necessarily correct.
Picture this: you are working under syncpoint and do a successful get. You have to rollback. On the second attempt the transaction is successful. Here you will have 2 gets for 1 message and the rollback does not generate a put statistic...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 24, 2011 7:29 am Post subject: Re: amqsmon output puzzle |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fjb_saper wrote: |
Picture this: you are working under syncpoint and do a successful get. You have to rollback. On the second attempt the transaction is successful. |
it's not clear to me, without having double-checked the documentation, if a rollback would count as a failed get or not. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Aug 24, 2011 9:51 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I have seen a looping app that keeps rolling back the same message drive the get count through the roof, while the put count stayed at 1. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|