ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » does more than one listener increases performance

Post new topic  Reply to topic Goto page 1, 2  Next
 does more than one listener increases performance « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Sat Feb 18, 2006 6:06 am    Post subject: does more than one listener increases performance Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Does more than one listener increase performance? Technically, how many listener can be run for a queue manager?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Feb 18, 2006 7:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

As many as your system's IO management will support.
Does it make sense ?

Usually one Listener is enough unless you have to handle very heavy IO or you want to segment authorizations.
Say for instance you have set specific authorizations for user xyz on your qmgr and you are going to run the listener under xyz's id. Any operation that xyz is not approved for will be rejected. Make sure xyz has authorization to put to the DLQ...

If xyz has no authorizations and you try to run a rcvr channel in it will look like if the qmgr is not available from the sender's perspective...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Sat Feb 18, 2006 7:39 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

fjb_saper wrote:
Say for instance you have set specific authorizations for user xyz on your qmgr and you are going to run the listener under xyz's id. Any operation that xyz is not approved for will be rejected. Make sure xyz has authorization to put to the DLQ...

If xyz has no authorizations and you try to run a rcvr channel in it will look like if the qmgr is not available from the sender's perspective...

The same can be accomplished with one listener, and then simply coding the specific IDs in the RCVR channels' MCAUSER field.

A listener has a limited number of outstanding connection attempts it can handle (see ListenerBackLog in the qm.ini file). If this threshold is exceeded, as it could easily be in a Denial of Service attack, all MQ connections will be refused. We use a dedicated listener for each connection to other companies. By running dedicated listeners for each outside partner Queue Manager, this threat is eliminated. If we need to stop any and all MQ connection attempts from a particular company, it is a simple matter to shutdown their listener. While other connections from other companies remain uneffected.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Feb 18, 2006 3:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Thanks Peter I had forgotten that one. Of course it is the most important reason.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
TJo
PostPosted: Thu Feb 23, 2006 8:01 am    Post subject: Reply with quote

Novice

Joined: 26 Jul 2004
Posts: 18
Location: Gothenburg Sweden

PeterPotkay wrote:
If we need to stop any and all MQ connection attempts from a particular company, it is a simple matter to shutdown their listener. While other connections from other companies remain uneffected.


But how do you stop the listener without stopping the qm first? As far as I have seen (on *IX only) the qm must be stopped before the listeners.

Regards /TJo
_________________
"Always code as if the guy who ends up maintaining your code will be
a violent psychopath who knows where you live." --Martin Golding
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
wschutz
PostPosted: Thu Feb 23, 2006 8:10 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

With V6 of MQ, you can define listener objects (define listener), and start and stop them at will.....

otherwise I would think "kill" would do it.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Tibor
PostPosted: Thu Feb 23, 2006 9:00 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

TJo wrote:
But how do you stop the listener without stopping the qm first? As far as I have seen (on *IX only) the qm must be stopped before the listeners.

You can stop the listener with this command: endmqlsr -m <qmname> -f (=force) on a v5 queue manager.

Tibor
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Feb 23, 2006 9:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Tibor wrote:
TJo wrote:
But how do you stop the listener without stopping the qm first? As far as I have seen (on *IX only) the qm must be stopped before the listeners.

You can stop the listener with this command: endmqlsr -m <qmname> -f (=force) on a v5 queue manager.

Tibor
doesn't that stop all listeners for the qm?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
mvic
PostPosted: Thu Feb 23, 2006 9:17 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

wschutz wrote:
doesn't that stop all listeners for the qm?

Seems it does : http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/endlsr.htm
Back to top
View user's profile Send private message
Tibor
PostPosted: Thu Feb 23, 2006 9:30 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Well, it does all instances. But TJo's question was about only the stopping

However, when you execute a stop listener command, what about the process pooling process (amqrmppa)? Sometimes these processes don't stop after an endmqlsr

Tibor
Back to top
View user's profile Send private message
jpeela
PostPosted: Mon Feb 27, 2006 1:26 pm    Post subject: Reply with quote

Centurion

Joined: 23 Jan 2006
Posts: 139

please some body let me know wether we can stop one listener still having other listeners running.this seems would be fentastic if would b possible.
thanx.
_________________
Jogi
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
PeterPotkay
PostPosted: Mon Feb 27, 2006 1:27 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Yes you can.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
mvic
PostPosted: Mon Feb 27, 2006 2:09 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

mquseless wrote:
Stopping the listener does not stop existing channels, it only stops new channels (SVRCONN or RCVR type)from starting.

If there's more than one listener (each listening on a different port) then stopping one of them would not prevent both these types of channel from starting, via any listeners that were still running.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 27, 2006 5:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And with version 6 you can selectively start and stop a listener. If you have multiple listeners running on the same machine you can selectively stop or start which ever specific listener you would like. You would do it from the MQ Explorer or from within runmqsc.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
HubertKleinmanns
PostPosted: Tue Feb 28, 2006 11:57 am    Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

jpeela wrote:
please some body let me know wether we can stop one listener still having other listeners running.this seems would be fentastic if would b possible.
thanx.


You may use kill -9 <pid_of_one_listener>. In fact endmqlsr -f does nearly the same.
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » does more than one listener increases performance
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.