Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Monitoring Jobs with high CPU

54 views
Skip to first unread message

Ian Chadd

unread,
Feb 23, 2001, 9:57:20 AM2/23/01
to
Hi everyone,

Sometimes user's interactive jobs fail on the PC side but leave a session
open on the AS400, this in turn causes the Total CPU to rise dramatically.
I would like monitor for jobs which reach a certain CPU limit, does anyone
know how this could be done.

Many thanks
Ian.


Rolf Mittag

unread,
Feb 23, 2001, 12:39:19 PM2/23/01
to
it depends :

if you don't want to use API's issue a

"wrkActJob OUTPUT(*print) RESET(*yes)
SBS(<yourSbs>) CPUPCTLMT(<yourLimit>) SEQ(*cpuPct)

read back the spool file and process the jobs

on the other hand there are API's for that
QUSLJOB / QGYOLJOB

goto http://publib.boulder.ibm.com/pubs/html/as400/online/v4r4eng.htm
then categories and then work management API's.

HTH rolf

---------------------------
Dipl.Inf.(FH) Rolf P Mittag
Leipziger Str. 50
D-69214 Eppelheim
Fon: +49 (6221) 76 78 60
Fax: +49 (6221) 76 80 26
eMl: r...@r-m-e-d-v.de


Dominic Schreiber

unread,
Feb 26, 2001, 5:53:23 PM2/26/01
to
This failure is generally down to the program on the AS/400 not monitoring
for a device failure and so goes into a 'loop' using up large amounts of CPU
when the session is ended abnormally. ( A very common problem)

If I remember correctly, there is a system value that controls what action
to take on failed devices - QDEVRCYAC. The default setting ( I think) is
*MSG which simply messages the session and causes the loop. If you set this
to *ENDJOB the job will be forced to end and this should stop the problem.

Dominic

"Ian Chadd" <ian....@sbs.siemens.co.uk> wrote in message
news:975u50$127$1...@taliesin2.netcom.net.uk...

0 new messages