Author |
Message
|
senMQ |
Posted: Thu Jul 24, 2008 11:04 am Post subject: DefaultQBufferSize |
|
|
Acolyte
Joined: 14 Aug 2006 Posts: 66 Location: Palo Alto, CA
|
Is there a way to identify the DefaultQBufferSize for a queue that has already been created. The TuningParameters stanza on qm.ini is commented out. This is how it looks like:
#TuningParameters:
# DefaultQBufferSize=256000
# DefaultPQBufferSize=1000000
Now, I dont know which queue was created with default values and which one with this configuration. Is there a tool / command / way to identify DefaultQBufferSize & DefaultPQBufferSize of a queue.
Thnx |
|
Back to top |
|
 |
gunter |
Posted: Mon Jul 28, 2008 10:06 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
I changed DefaultQBufferSize on Solaris with WMQ 6 and found the value in
/var/mqm/qmgr/QMGR/QUEUE/q.
$>od -X q | grep "^0003220"
0003220 00000000 00000200 7fffffff 000f4200
This is not ducumented, maybe different on other systems or versions.
It looks as if the value is aligned.
1000000 = 0xF4240 => 0xF4200
800000 = 0xC3500 => 0xC3400
Creating queues with non-default values has to be documeted.
Maybe the only way to know the real value is to delete and recreate the queue. _________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
senMQ |
Posted: Tue Jul 29, 2008 8:03 am Post subject: Buffer size |
|
|
Acolyte
Joined: 14 Aug 2006 Posts: 66 Location: Palo Alto, CA
|
I was able to figure out a way to identify the buffer size of an an existing queue with IBM's help. This is how we can we can find it:
Run,
amqldmpa -m<QMNAME> -cA -q<QUEUENAME> -u1 -f/tmp/q.txt
and then running,
grep StgClass.MaxQBufferLength /tmp/q.txt
The output would be like this:
StgClass.MaxQBufferLength 131072
Ofcourse, the best way to manage the environment is by documenting these tuning parameters !!
Thx |
|
Back to top |
|
 |
KeeferG |
Posted: Wed Jul 30, 2008 4:11 am Post subject: |
|
|
 Master
Joined: 15 Oct 2004 Posts: 215 Location: Basingstoke, UK
|
The file also has an entry called Internal.QAvoidCount whioch is very useful when tuning your applicaiton for performance. You want this number to be high when comnpared to Internal.TotalEnqueues. _________________ Keith Guttridge
-----------------
Using MQ since 1995 |
|
Back to top |
|
 |
gunter |
Posted: Fri Aug 01, 2008 12:04 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
|
Back to top |
|
 |
KeeferG |
Posted: Fri Aug 01, 2008 12:15 am Post subject: |
|
|
 Master
Joined: 15 Oct 2004 Posts: 215 Location: Basingstoke, UK
|
I am suprised there is even that much. It is an undocumented command used by IBM internally but it has made its way out into the world.
I've been using it for about 8 years but I only ever is it as -c A -d 7 -u 1
and only to check queue avoidance and DefualtQBufferSize. I probably don't need all of the paramaters I use but thats what I was told and thats what i stick to.
I haven't ever played around with it but I expect it does some very useful stuff too. _________________ Keith Guttridge
-----------------
Using MQ since 1995 |
|
Back to top |
|
 |
|