You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "zhaoyi0113@gmail.com" <zh...@gmail.com> on 2010/08/19 08:42:56 UTC
How to check whether a listener is running or not?
I use Java as client to send messages to QPID-Java broker. I want to let
Producers know whether a listener is listening on a queue. For example,
Producer A sends a message to QPID broker and if no one is listening on this
queue, the broker will send a error message to the Producer A. How can I
make this happen?
--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/How-to-check-whether-a-listener-is-running-or-not-tp5439104p5439104.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: qpid-tool list says 500 connections (4 clients), is it ok?
Posted by Alan Conway <ac...@redhat.com>.
On 08/23/2010 09:55 AM, nicolae claudius wrote:
> The problem is that I can't connect to the broker with other clients after a
> while.
>
> The list command of qpid-tool shows the following:
>
>
> qpid: list
> Management Object Types:
> ObjectType Active Deleted
> ======================================================
> org.apache.qpid.broker:binding 31 0
> org.apache.qpid.broker:broker 1 0
> org.apache.qpid.broker:connection 500 0
> org.apache.qpid.broker:exchange 6 0
> org.apache.qpid.broker:queue 15 0
> org.apache.qpid.broker:session 2 0
> org.apache.qpid.broker:subscription 5 0
> org.apache.qpid.broker:system 1 0
> org.apache.qpid.broker:vhost 1 0
>
>
> I have only 4 clinets to my server. Is it ok to have 500 connections for thees
> or am I doing something wrong ?
>
> Also the command qpid tool `list connection` shows a BIG BIG list like:
> :
> :
> :
> 648 12:09:29 - 103.10.10.8.127:7311
> 649 12:09:31 - 103.10.10.8.127:7312
> 650 12:09:34 - 103.10.10.8.127:7313
> 651 12:09:36 - 103.10.10.8.127:7314
> 652 12:09:38 - 103.10.10.8.127:7315
> 653 12:09:41 - 103.10.10.8.127:7316
> 654 12:09:43 - 103.10.10.8.127:7317
> 655 12:09:45 - 103.10.10.8.127:7318
> 656 12:09:48 - 103.10.10.8.127:7319
> 657 12:09:50 - 103.10.10.8.127:7320
> 658 12:09:53 - 103.10.10.8.127:7321
> 659 12:09:55 - 103.10.10.8.127:7322
> 660 12:09:57 - 103.10.10.8.127:7323
> 661 12:27:17 - 103.10.10.8.127:7378
> 662 13:34:40 - 103.127.0.0.1:60364
>
> Is it possible that I open too many connections and don't close them.
>
>
>
>
There's a qpidd configuration option "max-connections" which is set to 500 by
default.
--max-connections N (500) Sets the maximum allowed connections
You can set it to a higher value
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: qpid-tool list says 500 connections (4 clients), is it ok?
Posted by nicolae claudius <ni...@yahoo.com>.
I am using the c++ 0.6 client on windows.
Indeed, I was not closing the connections.
Thank you for your assistance.
________________________________
From: Gordon Sim <gs...@redhat.com>
To: users@qpid.apache.org
Sent: Mon, 23 August, 2010 17:08:38
Subject: Re: qpid-tool list says 500 connections (4 clients), is it ok?
On 08/23/2010 02:55 PM, nicolae claudius wrote:
> The problem is that I can't connect to the broker with other clients after a
> while.
>
> The list command of qpid-tool shows the following:
>
>
> qpid: list
> Management Object Types:
> ObjectType Active Deleted
> ======================================================
> org.apache.qpid.broker:binding 31 0
> org.apache.qpid.broker:broker 1 0
> org.apache.qpid.broker:connection 500 0
> org.apache.qpid.broker:exchange 6 0
> org.apache.qpid.broker:queue 15 0
> org.apache.qpid.broker:session 2 0
> org.apache.qpid.broker:subscription 5 0
> org.apache.qpid.broker:system 1 0
> org.apache.qpid.broker:vhost 1 0
>
>
> I have only 4 clinets to my server. Is it ok to have 500 connections for thees
> or am I doing something wrong ?
That *could* be a result of
https://issues.apache.org/jira/browse/QPID-2636 (now fixed on trunk but
present in 0.6).
> Also the command qpid tool `list connection` shows a BIG BIG list like:
> :
> :
> :
> 648 12:09:29 - 103.10.10.8.127:7311
> 649 12:09:31 - 103.10.10.8.127:7312
> 650 12:09:34 - 103.10.10.8.127:7313
> 651 12:09:36 - 103.10.10.8.127:7314
> 652 12:09:38 - 103.10.10.8.127:7315
> 653 12:09:41 - 103.10.10.8.127:7316
> 654 12:09:43 - 103.10.10.8.127:7317
> 655 12:09:45 - 103.10.10.8.127:7318
> 656 12:09:48 - 103.10.10.8.127:7319
> 657 12:09:50 - 103.10.10.8.127:7320
> 658 12:09:53 - 103.10.10.8.127:7321
> 659 12:09:55 - 103.10.10.8.127:7322
> 660 12:09:57 - 103.10.10.8.127:7323
> 661 12:27:17 - 103.10.10.8.127:7378
> 662 13:34:40 - 103.127.0.0.1:60364
>
> Is it possible that I open too many connections and don't close them.
That's also possible of course. Is it possible that you aren't closing
connections? What client(s) are you using?
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: qpid-tool list says 500 connections (4 clients), is it ok?
Posted by Gordon Sim <gs...@redhat.com>.
On 08/23/2010 02:55 PM, nicolae claudius wrote:
> The problem is that I can't connect to the broker with other clients after a
> while.
>
> The list command of qpid-tool shows the following:
>
>
> qpid: list
> Management Object Types:
> ObjectType Active Deleted
> ======================================================
> org.apache.qpid.broker:binding 31 0
> org.apache.qpid.broker:broker 1 0
> org.apache.qpid.broker:connection 500 0
> org.apache.qpid.broker:exchange 6 0
> org.apache.qpid.broker:queue 15 0
> org.apache.qpid.broker:session 2 0
> org.apache.qpid.broker:subscription 5 0
> org.apache.qpid.broker:system 1 0
> org.apache.qpid.broker:vhost 1 0
>
>
> I have only 4 clinets to my server. Is it ok to have 500 connections for thees
> or am I doing something wrong ?
That *could* be a result of
https://issues.apache.org/jira/browse/QPID-2636 (now fixed on trunk but
present in 0.6).
> Also the command qpid tool `list connection` shows a BIG BIG list like:
> :
> :
> :
> 648 12:09:29 - 103.10.10.8.127:7311
> 649 12:09:31 - 103.10.10.8.127:7312
> 650 12:09:34 - 103.10.10.8.127:7313
> 651 12:09:36 - 103.10.10.8.127:7314
> 652 12:09:38 - 103.10.10.8.127:7315
> 653 12:09:41 - 103.10.10.8.127:7316
> 654 12:09:43 - 103.10.10.8.127:7317
> 655 12:09:45 - 103.10.10.8.127:7318
> 656 12:09:48 - 103.10.10.8.127:7319
> 657 12:09:50 - 103.10.10.8.127:7320
> 658 12:09:53 - 103.10.10.8.127:7321
> 659 12:09:55 - 103.10.10.8.127:7322
> 660 12:09:57 - 103.10.10.8.127:7323
> 661 12:27:17 - 103.10.10.8.127:7378
> 662 13:34:40 - 103.127.0.0.1:60364
>
> Is it possible that I open too many connections and don't close them.
That's also possible of course. Is it possible that you aren't closing
connections? What client(s) are you using?
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
qpid-tool list says 500 connections (4 clients), is it ok?
Posted by nicolae claudius <ni...@yahoo.com>.
The problem is that I can't connect to the broker with other clients after a
while.
The list command of qpid-tool shows the following:
qpid: list
Management Object Types:
ObjectType Active Deleted
======================================================
org.apache.qpid.broker:binding 31 0
org.apache.qpid.broker:broker 1 0
org.apache.qpid.broker:connection 500 0
org.apache.qpid.broker:exchange 6 0
org.apache.qpid.broker:queue 15 0
org.apache.qpid.broker:session 2 0
org.apache.qpid.broker:subscription 5 0
org.apache.qpid.broker:system 1 0
org.apache.qpid.broker:vhost 1 0
I have only 4 clinets to my server. Is it ok to have 500 connections for thees
or am I doing something wrong ?
Also the command qpid tool `list connection` shows a BIG BIG list like:
:
:
:
648 12:09:29 - 103.10.10.8.127:7311
649 12:09:31 - 103.10.10.8.127:7312
650 12:09:34 - 103.10.10.8.127:7313
651 12:09:36 - 103.10.10.8.127:7314
652 12:09:38 - 103.10.10.8.127:7315
653 12:09:41 - 103.10.10.8.127:7316
654 12:09:43 - 103.10.10.8.127:7317
655 12:09:45 - 103.10.10.8.127:7318
656 12:09:48 - 103.10.10.8.127:7319
657 12:09:50 - 103.10.10.8.127:7320
658 12:09:53 - 103.10.10.8.127:7321
659 12:09:55 - 103.10.10.8.127:7322
660 12:09:57 - 103.10.10.8.127:7323
661 12:27:17 - 103.10.10.8.127:7378
662 13:34:40 - 103.127.0.0.1:60364
Is it possible that I open too many connections and don't close them.
Re: How to check whether a listener is running or not?
Posted by "zhaoyi0113@gmail.com" <zh...@gmail.com>.
How can I declare an auto-delete queue by JNDI property?
--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/How-to-check-whether-a-listener-is-running-or-not-tp5439104p5459428.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: How to check whether a listener is running or not?
Posted by "zhaoyi0113@gmail.com" <zh...@gmail.com>.
How about if the queue is defined in config.xml file? Can I declare the same
queue to override the queue in config.xml file?
--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/How-to-check-whether-a-listener-is-running-or-not-tp5439104p5486953.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: How to check whether a listener is running or not?
Posted by Rafael Schloming <ra...@redhat.com>.
zhaoyi0113@gmail.com wrote:
> I use Java as client to send messages to QPID-Java broker. I want to let
> Producers know whether a listener is listening on a queue. For example,
> Producer A sends a message to QPID broker and if no one is listening on this
> queue, the broker will send a error message to the Producer A. How can I
> make this happen?
You could define the queue as auto-delete with an alternate-exchange set
to some value that the producer is subscribed to. That way when the
consumer goes away, the queue goes away, and as a result any queued
messages would be sent back to the producer.
--Rafael
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org