I have verified that when I give it an interval of 6000 that the tran ends
after 60 seconds.
But even if my interval was higher than I had intended, that wouldn't
explain why the CPU time
goes up during the wait.

I believe that Jim Ford has hit the nail on the head in saying 'blame the
developer'.  I took a sample program that was delivered with MQ, CSQ4CVJ1,
and made two lines of code changes, MQGMO-WAIT and set a 60 sec interval.
When I execute it, it is NOT using CPU during the wait.  So it appears that
something done differently in the developers code is causing the problem.  I
just need to figure out what.

Thanks for the help!
--Original Message-----
From: David Awerbuch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: MQGET with wait in CICS


Janet,

Stefan raises a good point.  Remember that the timeout interval for MQGET is
measured in milliseconds (thousands of a second) and not second or minutes.
PErhaps your timeout value needs to be multiplied by 1,000 or some such
other
order of magnitude.

Let us know what the answer is.

Dave A.

David A. Awerbuch,  IBM Certified MQSeries Specialist
APC Consulting Services, Inc.
Providing Automated Solutions to Business Challenges
West Hempstead, NY    (516) 481-6440
[EMAIL PROTECTED]


----- original message -----
Date: Mon, 24 Jun 2002 15:54:40 -0700
From: "Stefan Sievert" <[EMAIL PROTECTED]>
Subject: Re: MQGET with wait in CICS

Janet,
are you sure that the GET with wait in your application program is not
implemented with a logic like this:

while MQRC = 2033 (no msg avail.)
   MQGET nowait
end

This would explain the CPU hunger. I'd check the application to verify that
the GMO_WAIT option with a reasonable WaitInterval is used.
Just a thought (from nasty experiences...),
;-) Stefan

>From: "Dye, Janet E" <[EMAIL PROTECTED]>
>Reply-To: MQSeries List <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: MQGET with wait in CICS
>Date: Mon, 24 Jun 2002 16:24:00 -0500
>
>We have noticed that when a CICS program does a MQGET with wait, that
>during
>the time interval that the task is waiting, that it is using a lot of CPU
>resources.  When I do a MQGET with wait
>in a batch environment, it does not appear to be using any resources during
>the wait.  Has anyone
>else experienced this.  For purposes of being efficient, we wait a few
>seconds after a MQGET to
>see if another messages arrives, in order to avoid the process being
>triggered again and having to go thru the overhead of the MQOPEN/MQCLOSE.
>Any suggestions?
>
>Janet Dye


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to