Author |
Message
|
jnoubi |
Posted: Wed Dec 27, 2006 12:56 pm Post subject: Compression over MQ channels |
|
|
Novice
Joined: 26 Sep 2006 Posts: 24
|
Hi,
I am wondering what would be the easiest way to enable compression over communications channels between queue managers. What I mean by easiest is without writing any code. Is there an option to set when creating the channel that will enable compression? or an mq pac that can help in this ?
Jnoubi |
|
Back to top |
|
 |
pathipati |
Posted: Wed Dec 27, 2006 1:17 pm Post subject: |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
try using COMPMSG( NONE | RLE | ZLIBFAST | ZLIBHIGH ) |
|
Back to top |
|
 |
jnoubi |
Posted: Wed Dec 27, 2006 1:44 pm Post subject: |
|
|
Novice
Joined: 26 Sep 2006 Posts: 24
|
is COMPMSG( NONE | RLE | ZLIBFAST | ZLIBHIGH ) a field in the MQ channel create command?
or does this run as part of code in the channel exit ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 27, 2006 2:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
chiru wrote: |
try using COMPMSG( NONE | RLE | ZLIBFAST | ZLIBHIGH ) |
If you really want compression you should put NONE last as it uses the order of preference as entered...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
pathipati |
Posted: Wed Dec 27, 2006 3:51 pm Post subject: |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
Quote: |
is COMPMSG( NONE | RLE | ZLIBFAST | ZLIBHIGH ) a field in the MQ channel create command? |
Yes.. |
|
Back to top |
|
 |
grebenar |
Posted: Mon Jan 29, 2007 9:06 am Post subject: |
|
|
Novice
Joined: 10 Apr 2006 Posts: 22 Location: Budapest, Hungary
|
Hello,
I'm also having problems with channel compression, between a HP-UX Itanium and Windows 2003 SE.
I'd like to have compression on a CLNTCONN channel. I set COMPMSG to ZLIBFAST both on SVRCONN and CLNTCONN channels (later ANY on SVRCONN), then copied the AMQCLCHL.TAB file to the windows machine. I checked it (with channel disabling), the client programs use this file.
However, when I use netmon to monitor network traffic, I can clearly see my messages' text put via amqsput. Maybe I forget something?
The QM and channel channel was restared after setting it.
Thanks,
Robert
Code: |
dis chl(SUBA_T1_C_01_COMPR) chltype(clntconn) all
AMQ8414: Display Channel details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(CLNTCONN)
ALTDATE(2006-12-05) ALTTIME(16.23.58)
COMPHDR(NONE) COMPMSG(ZLIBFAST)
CONNAME(mqcenter.mkb.local(1456)) DESCR( )
HBINT(300) KAINT(AUTO)
LOCLADDR( ) MAXMSGL(4194304)
MODENAME( ) PASSWORD( )
QMNAME(SUBA_T1) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SSLCIPH( )
SSLPEER( ) TPNAME( )
TRPTYPE(TCP) USERID( )
dis chl(SUBA_T1_C_01_COMPR) chltype(SVRCONN) all
1 : dis chl(SUBA_T1_C_01_COMPR) chltype(SVRCONN) all
AMQ8414: Display Channel details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(SVRCONN)
ALTDATE(2007-01-29) ALTTIME(17.22.59)
COMPHDR(NONE) COMPMSG(ANY)
DESCR( ) HBINT(300)
KAINT(AUTO) MAXMSGL(4194304)
MCAUSER(mqm) MONCHL(MEDIUM)
RCVDATA( ) RCVEXIT( )
SCYDATA( ) SCYEXIT( )
SENDDATA( ) SENDEXIT( )
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)
3 : dis chstatus(SUBA_T1_C_01_COMPR) all
AMQ8417: Display Channel Status details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(SVRCONN)
BUFSRCVD(158989) BUFSSENT(159212)
BYTSRCVD(42725413) BYTSSENT(54894228)
CHSTADA(2007-01-24) CHSTATI(20.16.29)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(0.0.0.0) CURRENT
EXITTIME(0,0) HBINT(300)
JOBNAME(000007D300000001) LOCLADDR( )
LSTMSGDA(2007-01-29) LSTMSGTI(18.00.43)
MCASTAT(RUNNING) MCAUSER(mqm)
MONCHL(MEDIUM) MSGS(158986)
RAPPLTAG(SUBASys\MQPROV_T1\MQProv.exe)
RQMNAME( ) SSLCERTI( )
SSLKEYDA( ) SSLKEYTI( )
SSLPEER( ) SSLRKEYS(0)
STATUS(RUNNING) STOPREQ(NO)
SUBSTATE(RECEIVE) XMITQ( )
|
[/code] |
|
Back to top |
|
 |
pathipati |
Posted: Mon Jan 29, 2007 9:18 am Post subject: |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
Quote: |
However, when I use netmon to monitor network traffic, I can clearly see my messages' text put via amqsput. Maybe I forget something? |
Hi grebenar,
I didn't get exactly what you are trying to say here. Do you mean you don't want to see ur message as text through netmon? or COMPMSG didn't increased the performance? |
|
Back to top |
|
 |
grebenar |
Posted: Wed Jan 31, 2007 5:48 am Post subject: |
|
|
Novice
Joined: 10 Apr 2006 Posts: 22 Location: Budapest, Hungary
|
Hello Pathipati,
I just wanted to check somehow that compression is working, before we go live with it. Then I was surprised that I saw the uncompressed message in the TCP/IP monitor.
Then I took a look to the CHSTATUS and saw that no compression was used.
Chl monitoring is turned on, see:
Code: |
AMQ8417: Display Channel Status details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(SVRCONN)
BUFSRCVD(9) BUFSSENT(8)
BYTSRCVD(3666) BYTSSENT(3176)
CHSTADA(2007-01-31) CHSTATI(14.17.01)
COMPHDR(NONE,NONE) COMPMSG(NONE,NONE)
COMPRATE(0,0) COMPTIME(0,0)
CONNAME(0.0.0.0) CURRENT
EXITTIME(0,0) HBINT(300)
JOBNAME(00006E2700000001) LOCLADDR( )
LSTMSGDA(2007-01-31) LSTMSGTI(14.17.17)
MCASTAT(RUNNING) MCAUSER(mqm)
MONCHL(MEDIUM) MSGS(7)
RAPPLTAG(ebSphere MQ\bin\amqsputc.exe)
RQMNAME( ) SSLCERTI( )
SSLKEYDA( ) SSLKEYTI( )
SSLPEER( ) SSLRKEYS(0)
STATUS(RUNNING) STOPREQ(NO)
SUBSTATE(RECEIVE) XMITQ( )
dis chl(SUBA_T1_C_01_COMPR) all
34 : dis chl(SUBA_T1_C_01_COMPR) all
AMQ8414: Display Channel details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(SVRCONN)
ALTDATE(2007-01-29) ALTTIME(17.22.59)
COMPHDR(NONE) COMPMSG(ANY)
DESCR( ) HBINT(300)
KAINT(AUTO) MAXMSGL(4194304)
MCAUSER(mqm) MONCHL(MEDIUM)
RCVDATA( ) RCVEXIT( )
SCYDATA( ) SCYEXIT( )
SENDDATA( ) SENDEXIT( )
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)
35 : dis qmgr all
AMQ8408: Display Queue Manager details.
QMNAME(SUBA_T1) ACCTCONO(DISABLED)
ACCTINT(1800) ACCTMQI(OFF)
ACCTQ(OFF) ACTIVREC(MSG)
ALTDATE(2007-01-31) ALTTIME(14.14.32)
AUTHOREV(DISABLED) CCSID(819)
CHAD(DISABLED) CHADEV(DISABLED)
CHADEXIT( ) CHLEV(DISABLED)
CLWLDATA( ) CLWLEXIT( )
CLWLLEN(100) CLWLMRUC(999999999)
CLWLUSEQ(LOCAL) CMDLEVEL(600)
COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) CRDATE(2006-09-07)
CRTIME(18.02.33) DEADQ(SYSTEM.DEAD.LETTER.QUEUE)
DEFXMITQ( ) DESCR( )
DISTL(YES) INHIBTEV(DISABLED)
IPADDRV(IPV4) LOCALEV(DISABLED)
LOGGEREV(DISABLED) MAXHANDS(256)
MAXMSGL(4194304) MAXPRTY(9)
MAXUMSGS(10000) MONACLS(QMGR)
MONCHL(HIGH) MONQ(OFF)
PERFMEV(DISABLED) PLATFORM(UNIX)
QMID(SUBA_T1_2006-09-07_18.02.33) REMOTEEV(DISABLED)
REPOS( ) REPOSNL( )
ROUTEREC(MSG) SCHINIT(QMGR)
SCMDSERV(QMGR) SSLCRLNL( )
SSLCRYP( ) SSLEV(DISABLED)
SSLFIPS(NO)
SSLKEYR(/var/mqm/qmgrs/SUBA_T1/ssl/key)
SSLRKEYC(0) STATACLS(QMGR)
STATCHL(MEDIUM) STATINT(900)
STATMQI(OFF) STATQ(OFF)
STRSTPEV(ENABLED) SYNCPT
TRIGINT(999999999)
|
Please note COMPMSG(NONE,NONE) in the SVRCONN channel status - although chl monitoring is on, this is not like it is doing compression.
Any ideas?
Thanks, Robert |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jan 31, 2007 5:52 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
What is the compression set to on the requester channel at the other end? |
|
Back to top |
|
 |
grebenar |
Posted: Wed Jan 31, 2007 6:25 am Post subject: |
|
|
Novice
Joined: 10 Apr 2006 Posts: 22 Location: Budapest, Hungary
|
I use AMQCLCHL.TAB file, the chl def is the following:
Code: |
dis chl(SUBA_T1_C_01_COMPR)
3 : dis chl(SUBA_T1_C_01_COMPR)
AMQ8414: Display Channel details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(SVRCONN)
ALTDATE(2007-01-29) ALTTIME(17.22.59)
COMPHDR(NONE) COMPMSG(ANY)
DESCR( ) HBINT(300)
KAINT(AUTO) MAXMSGL(4194304)
MCAUSER(mqm) MONCHL(MEDIUM)
RCVDATA( ) RCVEXIT( )
SCYDATA( ) SCYEXIT( )
SENDDATA( ) SENDEXIT( )
SSLCAUTH(REQUIRED) SSLCIPH( )
SSLPEER( ) TRPTYPE(TCP)
AMQ8414: Display Channel details.
CHANNEL(SUBA_T1_C_01_COMPR) CHLTYPE(CLNTCONN)
ALTDATE(2006-12-05) ALTTIME(16.23.58)
COMPHDR(NONE) COMPMSG(ZLIBFAST)
CONNAME(mqcenter.mkb.local(1456)) DESCR( )
HBINT(300) KAINT(AUTO)
LOCLADDR( ) MAXMSGL(4194304)
MODENAME( ) PASSWORD( )
QMNAME(SUBA_T1) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SSLCIPH( )
SSLPEER( ) TPNAME( )
TRPTYPE(TCP) USERID( )
|
The client surely uses this channel. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jan 31, 2007 6:41 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Sorry about that...guess I was thrown by the original post
Quote: |
communications channels between queue managers. |
|
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jan 31, 2007 7:09 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Any chance this is it?
Quote: |
94385 Abstract THE CHANNEL COMPRESSION TECHNIQUE NEGOTIATED BY A SERVER
REQUESTER CHANNEL MAY NOT BE AS EXPECTED
Users Affected Users who have server requester channels (where the server
channel has no connection name specified) which use channel
compression lists
Platforms affected:
All Distributed (iSeries, all Unix and Windows)
Error Description The compression techniques negotiated by server requester
channels (where the server channel has no connection name
specified) may be incorrect. This particularly shows up when
the requester channel has COMPMSG(ANY) specified. In this
situation the negotiated message compression technique is ANY.
Problem Summary For server requester channels (where the server channel has no
connection name specified) the compression list of the
requester channel was incorrectly being treated as the sending
sides during compression negotiation.
Problem Conclusion For server requester channels (where the server channel has no
connection name specified) the servers compression list is now
used as the sending sides during compression negotiation.
|
I got it from
http://www-1.ibm.com/support/docview.wss?uid=swg27006868 |
|
Back to top |
|
 |
grebenar |
Posted: Wed Jan 31, 2007 7:29 am Post subject: |
|
|
Novice
Joined: 10 Apr 2006 Posts: 22 Location: Budapest, Hungary
|
Hmm, I don't think. We have normal SVRCONN and CLNTCONN channels.
The SVRCONN had COMPMSG(ZLIBFAST), and it didn't work neither, that's why i changed it to ANY.
Maybe 6.0.2.0 will do better. I'll try it tomorrow. |
|
Back to top |
|
 |
|