I would recommend investing the time in learning the Application Activity Trace. Tracing like strmqtrc would probably be too big/involved, but the Application Activity Trace was designed for the IBM MQ admin to have a tool to better understand/debug IBM MQ applications. I have found it an invaluable tool, myself.
Original Message:
Sent: Thu July 03, 2025 09:34 AM
From: Joao Ramires
Subject: Queue status LGETTIME ?
Thanks Tim , I guess activity trace is to "big" to use in my case, but I learned from your post the existence of amqsblst!
Looks like an excellent tool for testing purposes. I usually use q program or dmpmqmsg to put/get messages in my tests.
------------------------------
Joao Ramires
Original Message:
Sent: Thu July 03, 2025 09:17 AM
From: Tim Zielke
Subject: Queue status LGETTIME ?
You may find this approach helpful, as well.
https://community.ibm.com/community/user/blogs/tim-zielke1/2020/11/19/measuring-ibm-mq-distributed-api-response-time-wit
------------------------------
Tim Zielke
Original Message:
Sent: Thu July 03, 2025 09:04 AM
From: Morag Hughson
Subject: Queue status LGETTIME ?
I don't what MS Copilot is doing there. That is not expected output of QSTATUS. You know already from your own script that QTIME shows in MQSC like this:-
QTIME(528303854,534995245);
That looks like something is pulling out the two values and calling then HI and LO, but MQSC doesn't do that. Perhaps it is another tool reformatting the MQSC output?
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Thu July 03, 2025 07:32 AM
From: Joao Ramires
Subject: Queue status LGETTIME ?
Thank you all for the answers!
As Morag says, using RESET QSTAT it's a good suggestion
Neil: I used amqsrua in some other situations, the output it's not very friendly, one advantage of my script it produces an easily format that I can import in a spreadsheet .
Colin: yes the app is slow consuming messages, it's a WebSphere app, sometimes GC starts and takes long seconds, or it can be coding issues, or db
One additional note, asking about QTIME to MS Copilot, I have this answer. The HI and LO I don't see them on AIX MQ v9310
AMQ8450I: Display queue status details. QUEUE(YourQueueName) TYPE(QUEUE) QTIME HI(0000000200) LO(0000000005)
.
------------------------------
Joao Ramires
Original Message:
Sent: Thu July 03, 2025 03:22 AM
From: Colin Paice
Subject: Queue status LGETTIME ?
The last get time is the time of the last get - as you will see when the queue is empty.
It looks like there are two activities
- messages being read from the queue (at around 400 a minute < about 6-10 a second) ( see the last few lines of data when the queue depth is decreasing
- messages being put to the queue at put rate + 100 a second, when the queue depth is increasing.
When the putting activity ends, the queue is drained as we can see from the curdepth.
Your getting rate seems low - you might need to see what else it is doing - such as database work.
You might consider more than one getting task (if your application can handle that)- or find out why your getting application is slow.
Colin
Original Message:
Sent: 7/2/2025 11:26:00 AM
From: Joao Ramires
Subject: Queue status LGETTIME ?
Hello all!
I've a script running in a loop doing a display qstatus for queue "QX" each minute. Messages are not being consumed, but I see the LGETIME being updated, and the update shows it each minute, the loop delay, so I guess a DISPLAY QSTATUS, counts for the LGETTIME. If this is correct how can I find the LGETTIME the application reading these messages did a GET?
Thanks!
This is a sample output, when CURDEPTH not 0
202507021604;QUEUE(QX);TYPE(QUEUE);CURDEPTH(4897);IPPROCS(36);LGETTIME(16.04.09);MSGAGE(536);QTIME(528303854,534995245);202507021605;QUEUE(QX);TYPE(QUEUE);CURDEPTH(4949);IPPROCS(36);LGETTIME(16.05.00);MSGAGE(561);QTIME(539412826,550112888);202507021606;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5130);IPPROCS(36);LGETTIME(16.06.08);MSGAGE(591);QTIME(581428340,588563298);202507021607;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5263);IPPROCS(36);LGETTIME(16.07.10);MSGAGE(583);QTIME(578282501,582036260);202507021608;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5395);IPPROCS(36);LGETTIME(16.08.10);MSGAGE(597);QTIME(586453032,582246318);202507021609;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5562);IPPROCS(36);LGETTIME(16.09.09);MSGAGE(603);QTIME(596517880,601214980);202507021610;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5700);IPPROCS(36);LGETTIME(16.10.09);MSGAGE(633);QTIME(624763472,628459100);202507021611;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5854);IPPROCS(36);LGETTIME(16.11.09);MSGAGE(637);QTIME(631450408,635854548);202507021612;QUEUE(QX);TYPE(QUEUE);CURDEPTH(6091);IPPROCS(36);LGETTIME(16.12.10);MSGAGE(668);QTIME(658423937,666925301);202507021613;QUEUE(QX);TYPE(QUEUE);CURDEPTH(6223);IPPROCS(36);LGETTIME(16.13.10);MSGAGE(657);QTIME(658327044,656224997);202507021614;QUEUE(QX);TYPE(QUEUE);CURDEPTH(6135);IPPROCS(36);LGETTIME(16.14.10);MSGAGE(682);QTIME(672834453,679248596);202507021615;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5647);IPPROCS(36);LGETTIME(16.15.10);MSGAGE(665);QTIME(673735372,664562076);202507021616;QUEUE(QX);TYPE(QUEUE);CURDEPTH(5262);IPPROCS(36);LGETTIME(16.16.10);MSGAGE(688);QTIME(683472233,686400242);202507021617;QUEUE(QX);TYPE(QUEUE);CURDEPTH(4807);IPPROCS(36);LGETTIME(16.17.09);MSGAGE(693);QTIME(682311621,689324008);202507021618;QUEUE(QX);TYPE(QUEUE);CURDEPTH(4420);IPPROCS(36);LGETTIME(16.18.10);MSGAGE(694);QTIME(688357808,692888760);202507021619;QUEUE(QX);TYPE(QUEUE);CURDEPTH(3964);IPPROCS(36);LGETTIME(16.19.10);MSGAGE(727);QTIME(720857505,726626315);
when the queue is empty the LGETTIME shows the time last GET was, and when CURDEPTH = 0
202507021631;QUEUE(QX);TYPE(QUEUE);CURDEPTH(0);IPPROCS(36);LGETTIME(16.28.14);MSGAGE(0);QTIME(834251469,586289360);202507021631;QUEUE(QX);TYPE(QUEUE);CURDEPTH(0);IPPROCS(36);LGETTIME(16.28.14);MSGAGE(0);QTIME(834251469,586289360);202507021631;QUEUE(QX);TYPE(QUEUE);CURDEPTH(0);IPPROCS(36);LGETTIME(16.28.14);MSGAGE(0);QTIME(834251469,586289360);202507021631;QUEUE(QX);TYPE(QUEUE);CURDEPTH(0);IPPROCS(36);LGETTIME(16.28.14);MSGAGE(0);QTIME(834251469,586289360);202507021631;QUEUE(QX);TYPE(QUEUE);CURDEPTH(0);IPPROCS(36);LGETTIME(16.28.14);MSGAGE(0);QTIME(834251469,586289360);202507021632;QUEUE(QX);TYPE(QUEUE);CURDEPTH(0);IPPROCS(36);LGETTIME(16.28.14);MSGAGE(0);QTIME(834251469,586289360)
------------------------------
Joao Ramires
------------------------------