Author |
Message
|
noles321 |
Posted: Mon May 09, 2005 11:17 am Post subject: MQClient Message counts increase with no traffic |
|
|
Apprentice
Joined: 15 Nov 2004 Posts: 43
|
We have an application with 200 mqclients which are windows server that connect to a queue on an AIX queue manager. They continually poll the queue for messages... I notice that the message counts on the mqclient channel continually grow even when there is no traffic going to the application queue. Why is this? Do the MQGETS that travel across this SVRCONN channel get counted as a message? Thanks...
Jeramy |
|
Back to top |
|
 |
vennela |
Posted: Mon May 09, 2005 12:59 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
Do the MQGETS that travel across this SVRCONN channel get counted as a message? Thanks... |
So you are saying that only MQPUTs should be counted and not MQGETS? Is that what you are asking? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon May 09, 2005 1:59 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Any MQ API call over a MQI channel counts as 2 "messages". One "message" for the request to execute the API call, and another "message" for the result of the APi call be sent back to the MQClient. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
SoHumble |
Posted: Tue May 10, 2005 8:06 am Post subject: MQClient Message Counts |
|
|
Newbie
Joined: 10 May 2005 Posts: 3 Location: New Jersey, USA
|
Hi Peter, very interesting.. -- so what do these "API Call messages" look like?
do they have an MQMD?
do they have data content?
are they binary or character encoded?
has IBM published a content / format for them in one of the manuals? when I "MQGet" them, can I store them some where, then "Put" them to another queue perhaps? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue May 10, 2005 8:10 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Not published, but if you go to the Software Repository on this site, and download the SSL Tutorial, it includes a port sniffer. Set it up, and run MQ a Client channel thru it. You can see exactly what your channel is doing when its doing "nothing"!
If you set it up on a port where a SNDR/RCVR channel is going, you can see neat stuff like the talking the channels do at start up, or shutdown, or end of batch. While there are no MQ app messages going, you can see the Heartbeats flow.
 _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
SoHumble |
Posted: Tue May 10, 2005 8:20 am Post subject: MQClient Message Counts -- Contd. |
|
|
Newbie
Joined: 10 May 2005 Posts: 3 Location: New Jersey, USA
|
Hi Peter -- even more helpful....
OK -- so in my App, I won't be able to "see" these messages at all (I will just get a 2033), and I won't be able to retrieve them, and they don't have a MQMD, and they don't have any "application data"?
Is there any possible way to make these messages "visible" to my app. using the MQI?
If I was doing "MQGet" against a Local Queue over a SVRCONN, do you think I would be able to "see" these messages in a SNDEXIT or RCVEXIT?
Would the ENQ / DEQ Count for the queue go up at least? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue May 10, 2005 8:33 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
"OK -- so in my App, I won't be able to "see" these messages at all (I will just get a 2033), and I won't be able to retrieve them, and they don't have a MQMD, and they don't have any "application data"? "
Right, your app should be oblivious to these "messages". They are not messages. They are collections of bytes that are used by MQ to do its thang, and only occasionally will encompass a real application message payload.
Its confusing that the channel counts and reports these bundles of MQ system info as "messages".
"Is there any possible way to make these messages "visible" to my app. using the MQI? "
No.
"If I was doing "MQGet" against a Local Queue over a SVRCONN, do you think I would be able to "see" these messages in a SNDEXIT or RCVEXIT? "
Dunno. I would guess no.
"Would the ENQ / DEQ Count for the queue go up at least?"
No, and it shouldn't. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
SoHumble |
Posted: Tue May 10, 2005 9:20 am Post subject: |
|
|
Newbie
Joined: 10 May 2005 Posts: 3 Location: New Jersey, USA
|
heartfelt thanks for your time and knowledge, Peter. |
|
Back to top |
|
 |
|