View previous topic :: View next topic
|
Author |
Message |
manishram1
New User
Joined: 23 Mar 2006 Posts: 34
|
|
|
|
Hi Friends,
We use a Common Program to Get/Put messages in MQ (Say MQX).We have at least 30 Programs which is using this MQX to put or get messages from MQ.Though these programs have different length of Messages ,they are forced to use the maximum message length while calling MQX ,since it is the common module which inturn using considerable amount of CPU.
Eg
A,B,C programs Calls MQX
A has MQ Message Length of 50 bytes
B has MQ Message Lenght of 2000 bytes
C has MQ Message Length of 20 MB
Since MQX is the common module ,MQX has been gradually increased to 20 MB .So A,B though have smaller MQ Message length it is forced to use 20 MB to pass the message.
Thanks in Advance.
-Mani |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might consider a new design where the very large messages are placed in one queue and the others are placed in another. . .
Why is there a requirement that these all be interleaved? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what is the problem?
the length of the message, is the message length...
and just because you read a 20 byte message into an 20mg byte buffer is no problem.
you are having to resource problems just because of the 20mg buffer size.
you are deluded and have a personal problem which needs to be rectified before you have fix your mqs mess.
you have something else wrong with your system.
a standard - single module to read/write mqs message, regardless of the size is the way to go -
and your crying about needing separate module to handle the 'big ones',
only shows how inexperienced your are.
now explain your problem (other that wanting two modules).
how did you determine the problem?
because this is an idiot statement:
Quote: |
They are forced to use the maximum message length while calling MQX ,since it is the common module which inturn using ... |
they are not forced to used the maximum length... |
|
Back to top |
|
|
manishram1
New User
Joined: 23 Mar 2006 Posts: 34
|
|
|
|
Thanks for the Great Response dbz.
Dick,
Yes,we are thinking of new design.Thanks |
|
Back to top |
|
|
|