You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by RajendraNPTL <pr...@gmail.com> on 2013/05/29 08:19:19 UTC

qpid-queue-stats not giving statistics for all the queues ??

hello Every one..
i tried to know the enqueue and dequeue rates of queues in my Qpid c++
broker. Then, i used this command 

$qpid-queue-stats 

But, it's giving statistics of only two queues.
like this...

qmfc-v2-ui-localhost.3728.1                      10.00          0        
0.10         0.10
topic-localhost.3728.1                           10.00          0        
0.20         0.20
qmfc-v2-ui-localhost.3728.1                      10.00          0        
0.10         0.10
topic-localhost.3728.1                           10.00          0        
0.20         0.20
qmfc-v2-ui-localhost.3728.1                      10.00          0        
0.10         0.10
topic-localhost.3728.1                           10.00          0        
0.20         0.20
qmfc-v2-ui-localhost.3728.1                      10.00          0        
0.10         0.10
topic-localhost.3728.1                           10.00          0        
0.20         0.20
..........continues......

I want to get the statistics of all the queues in broker.
Also its good if i get statistics of a particular queue(Specified by me). 
Any idea is appreciated .. 
Thank you !!



-----
Time and tide waits for NONE ..!!
--
View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by RajendraNPTL <pr...@gmail.com>.
-Gordon Sim
Thank you very much. Now it is showing the statistics. As you said i tried
spout/drain to the "my_queue" while running the "qpid-queue-stats" in
another terminal. Then it is giving the statistics to "my_queue". 
Also your answer gave me a very good explanation.
Thank you so much once again..!!  



-----
Time and tide waits for NONE ..!!
--
View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7593592.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by NimbusParc <ni...@yahoo.in>.
+1

Gordon Sim wrote
> On 05/29/2013 12:10 PM, RajendraNPTL wrote:
>> - Gordon Sim
>> Thank you for your reply..
>>   i sent and received some data to the "my_queue". Still same output in
>> "qpid-queue-stats". No change.
> 
> qpid-queue-stats reports the rate of change to the msgs in and msgs out 
> counts. To see rates reported for that queue, you need to be actually 
> sending and receiving to the queue while you are running 
> qpid-queue-stats. Start a receiver and sender that just keep running 
> (either at a given rate or as fast as they can) and while they are 
> running check the output for qpid-queue-stats. (You can use the 
> qpid-send/qpid-receive utilities or the spout/drain examples if you like).
> 
>> i am trying in all the ways.
>>
>> My output for"qpid-stat -q" is given below..
>> $ qpid-stat -q
>> Queues
>>    queue                     dur  autoDel  excl  msg   msgIn  msgOut 
>> bytes
>> bytesIn  bytesOut  cons  bind
>>
>> =========================================================================================================
>>    my_queue                                              2       9        
>> 7
>> 10     45       35         0     1
>>    reply-localhost.6395.1            Y        Y     0      60        60
>> 0   30.7k    30.7k        1     2
>>    qmfc-v2-hb-localhost.6395.1   Y        Y     0        0         0      
>> 0
>> 0        0         1     2
>>    qmfc-v2-localhost.6395.1       Y        Y     0        11        11
>> 0   9.30k    9.30k        1     2
>>    topic-localhost.6395.1           Y        Y     0         0          0
>> 0      0        0         1     4
>>    qmfc-v2-ui-localhost.6395.1    Y        Y     0         0          0
>> 0      0        0         1     1
>>
>> Thank you in advance !!
>>
>>
>>
>> -----
>> Time and tide waits for NONE ..!!
>> --
>> View this message in context:
>> http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7593590.html
>> Sent from the Apache Qpid developers mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 

> dev-unsubscribe@.apache

>> For additional commands, e-mail: 

> dev-help@.apache

>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 

> dev-unsubscribe@.apache

> For additional commands, e-mail: 

> dev-help@.apache





--
View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7598207.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by Gordon Sim <gs...@redhat.com>.
On 05/29/2013 12:10 PM, RajendraNPTL wrote:
> - Gordon Sim
> Thank you for your reply..
>   i sent and received some data to the "my_queue". Still same output in
> "qpid-queue-stats". No change.

qpid-queue-stats reports the rate of change to the msgs in and msgs out 
counts. To see rates reported for that queue, you need to be actually 
sending and receiving to the queue while you are running 
qpid-queue-stats. Start a receiver and sender that just keep running 
(either at a given rate or as fast as they can) and while they are 
running check the output for qpid-queue-stats. (You can use the 
qpid-send/qpid-receive utilities or the spout/drain examples if you like).

> i am trying in all the ways.
>
> My output for"qpid-stat -q" is given below..
> $ qpid-stat -q
> Queues
>    queue                     dur  autoDel  excl  msg   msgIn  msgOut  bytes
> bytesIn  bytesOut  cons  bind
>
> =========================================================================================================
>    my_queue                                              2       9         7
> 10     45       35         0     1
>    reply-localhost.6395.1            Y        Y     0      60        60
> 0   30.7k    30.7k        1     2
>    qmfc-v2-hb-localhost.6395.1   Y        Y     0        0         0       0
> 0        0         1     2
>    qmfc-v2-localhost.6395.1       Y        Y     0        11        11
> 0   9.30k    9.30k        1     2
>    topic-localhost.6395.1           Y        Y     0         0          0
> 0      0        0         1     4
>    qmfc-v2-ui-localhost.6395.1    Y        Y     0         0          0
> 0      0        0         1     1
>
> Thank you in advance !!
>
>
>
> -----
> Time and tide waits for NONE ..!!
> --
> View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7593590.html
> Sent from the Apache Qpid developers mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
> For additional commands, e-mail: dev-help@qpid.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by RajendraNPTL <pr...@gmail.com>.
- Gordon Sim
Thank you for your reply..
 i sent and received some data to the "my_queue". Still same output in
"qpid-queue-stats". No change.
i am trying in all the ways. 

My output for"qpid-stat -q" is given below..
$ qpid-stat -q
Queues
  queue                     dur  autoDel  excl  msg   msgIn  msgOut  bytes 
bytesIn  bytesOut  cons  bind
 
=========================================================================================================
  my_queue                                              2       9         7     
10     45       35         0     1
  reply-localhost.6395.1            Y        Y     0      60        60      
0   30.7k    30.7k        1     2
  qmfc-v2-hb-localhost.6395.1   Y        Y     0        0         0       0     
0        0         1     2
  qmfc-v2-localhost.6395.1       Y        Y     0        11        11      
0   9.30k    9.30k        1     2
  topic-localhost.6395.1           Y        Y     0         0          0      
0      0        0         1     4
  qmfc-v2-ui-localhost.6395.1    Y        Y     0         0          0      
0      0        0         1     1

Thank you in advance !!



-----
Time and tide waits for NONE ..!!
--
View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7593590.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by Gordon Sim <gs...@redhat.com>.
On 05/29/2013 10:54 AM, RajendraNPTL wrote:
> Thank you for your reply..
>
> Yes, it is showing all queues .. i m giving my output here..
> -----------------------------------------------------------------
> $ qpid-stat -q
> Queues
>    queue                     dur  autoDel  excl  msg   msgIn  msgOut  bytes
> bytesIn  bytesOut  cons  bind
>
> =========================================================================================================
>    qmfc-v2-hb-localhost.9509.1       Y        Y        0     0      0       0
> 0        0         1     2
>    qmfc-v2-ui-localhost.9481.1        Y        Y        0     2      2
> 0   16.9k    16.9k        1     2                   // first one
>    topic-localhost.9509.1               Y        Y        0     0      0
> 0      0        0         1     4
>    qmfc-v2-localhost.9509.1           Y        Y        0    11     11
> 0   11.0k    11.0k        1     2
>    qmfc-v2-localhost.9481.1           Y        Y        0     1      1
> 0    227      227         1     2
>    reply-localhost.9509.1               Y        Y        0    60     60
> 0   30.7k    30.7k        1     2
>    reply-localhost.9481.1               Y        Y        0    60     60
> 0   30.7k    30.7k        1     2
>    qmfc-v2-hb-localhost.9481.1      Y        Y        0     0      0       0
> 0        0         1     2
>    topic-localhost.9481.1              Y        Y        0     3      3
> 0   6.10k    6.10k        1     6                 //second one
>    my_queue             		                             0     0      0       0
> 0        0         0     1                       // this is the Queue, i
> created
>    qmfc-v2-ui-localhost.9509.1       Y        Y        0     0      0       0
> 0        0         1     1
>
>>> "my_queue" is queue, which i created. And i m getting statistics for
>>> these two queues ("first one" and "second one", commented in above
>>> output) only.

It looks like nothing has been sent to or received from my_queue, which 
is probably why it is not showing up in the output of qpid-queue-stats. 
Start a sender and receiver on it and you should see the rates being 
reported.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by RajendraNPTL <pr...@gmail.com>.
Thank you for your reply..

Yes, it is showing all queues .. i m giving my output here..
-----------------------------------------------------------------
$ qpid-stat -q
Queues
  queue                     dur  autoDel  excl  msg   msgIn  msgOut  bytes 
bytesIn  bytesOut  cons  bind
 
=========================================================================================================
  qmfc-v2-hb-localhost.9509.1       Y        Y        0     0      0       0     
0        0         1     2
  qmfc-v2-ui-localhost.9481.1        Y        Y        0     2      2      
0   16.9k    16.9k        1     2                   // first one
  topic-localhost.9509.1               Y        Y        0     0      0      
0      0        0         1     4
  qmfc-v2-localhost.9509.1           Y        Y        0    11     11      
0   11.0k    11.0k        1     2
  qmfc-v2-localhost.9481.1           Y        Y        0     1      1      
0    227      227         1     2
  reply-localhost.9509.1               Y        Y        0    60     60      
0   30.7k    30.7k        1     2
  reply-localhost.9481.1               Y        Y        0    60     60      
0   30.7k    30.7k        1     2
  qmfc-v2-hb-localhost.9481.1      Y        Y        0     0      0       0     
0        0         1     2
  topic-localhost.9481.1              Y        Y        0     3      3      
0   6.10k    6.10k        1     6                 //second one
  my_queue             		                             0     0      0       0     
0        0         0     1                       // this is the Queue, i
created
  qmfc-v2-ui-localhost.9509.1       Y        Y        0     0      0       0     
0        0         1     1

>> "my_queue" is queue, which i created. And i m getting statistics for
>> these two queues ("first one" and "second one", commented in above
>> output) only.  



-----
Time and tide waits for NONE ..!!
--
View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7593587.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by Gordon Sim <gs...@redhat.com>.
On 05/29/2013 09:53 AM, RajendraNPTL wrote:
> Thank you for your response. How to add queues to the active traffic..?
> with "qpid-tool" command i got the queue id. Is that id useful to set the
> queue to the active traffic ??

There is nothing you need to do. What I meant was I suspect you are not 
pointing at the broker you think you are, or perhaps the queues you are 
expecting do not exist. Does qpid-stat -q show other queues?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by RajendraNPTL <pr...@gmail.com>.
Thank you for your response. How to add queues to the active traffic..?
with "qpid-tool" command i got the queue id. Is that id useful to set the
queue to the active traffic ??



-----
Time and tide waits for NONE ..!!
--
View this message in context: http://qpid.2158936.n2.nabble.com/qpid-queue-stats-not-giving-statistics-for-all-the-queues-tp7593582p7593584.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: qpid-queue-stats not giving statistics for all the queues ??

Posted by Gordon Sim <gs...@redhat.com>.
On 05/29/2013 07:19 AM, RajendraNPTL wrote:
> hello Every one..
> i tried to know the enqueue and dequeue rates of queues in my Qpid c++
> broker. Then, i used this command
>
> $qpid-queue-stats
>
> But, it's giving statistics of only two queues.
> like this...
>
> qmfc-v2-ui-localhost.3728.1                      10.00          0
> 0.10         0.10
> topic-localhost.3728.1                           10.00          0
> 0.20         0.20
> qmfc-v2-ui-localhost.3728.1                      10.00          0
> 0.10         0.10
> topic-localhost.3728.1                           10.00          0
> 0.20         0.20
> qmfc-v2-ui-localhost.3728.1                      10.00          0
> 0.10         0.10
> topic-localhost.3728.1                           10.00          0
> 0.20         0.20
> qmfc-v2-ui-localhost.3728.1                      10.00          0
> 0.10         0.10
> topic-localhost.3728.1                           10.00          0
> 0.20         0.20
> ..........continues......
>
> I want to get the statistics of all the queues in broker.
> Also its good if i get statistics of a particular queue(Specified by me).
> Any idea is appreciated ..

That sounds like there are no other queues with active traffic. Try 
qpid-stat -q and make sure you are connecting to the correct broker 
instance.

To filter the queues you are monitoring, use the --filter option.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org