How to check which jobs are using maximum ASP%

620 pts.
Tags:
AS/400
ASP
DSPSYSSTS
Is there any specific commands to check which jobs are using maximum ASP%? For e.g. when I ran DSPSYSSTS on my system, it showed some 82.6632 of ASP% used. I want to know which jobs are using it the maximum.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 11  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ToddN2000
    I do not know if there is a command to show how much auxiliary disk space an active job is using. I only know you can see the percentage of the CPU is being used by a job. If your percentage is that high you may need to adjust your system settings for disk management.
    13,050 pointsBadges:
    report
  • Splat
    That 82.6632 is the percentage of disk used.  You can see what objects comprise that figure by using the RTVDSKINF and PRTDSKINF commands.  Determining which jobs and processes are responsible for any given portion of that requires an overall familiarity with the software being used.

    BTW, at 82.6632% it might be a good idea to make reducing your disk usage a priority, either by archiving and/or removing unnecessary objects/libraries or by adding additional storage. 
    7,455 pointsBadges:
    report
  • SMAfrompune

    For Lib Size check :DSPOBJD OBJ(The_Lib) OBJTYPE(*LIB) DETAIL(*BASIC)

    For Obj Size check :DSPOBJD OBJ(The_Lib/*ALL) OBJTYPE(*ALL) DETAIL(*BASIC)

    35 pointsBadges:
    report
  • ToddN2000
    Also check your file for those with a large number of deleted records. You can reorg them or change the PF to reuse deleted records "Y"
    13,050 pointsBadges:
    report
  • ToddN2000
    Another place to look is user libraries. If you have assigned users personal libraries for them to create queries they will sometimes have crated files for import into Excell that were a one-time thing and they never cleared or deleted the file after use.
    13,050 pointsBadges:
    report
  • pdraebel
    The ASP% is the percentage of disk occupation. It is not directly related to jobs. In case you are experiencing an unexpected increase of the system ASP% you may have an issue caused by one or another job. I have seen system ASP's getting filled by just one job that issued a messsage and used an automated reply over the weekend. Checking the things mentioned in the other replies to do some cleanup work. In the case of the Automated reply filling up the ASP : check your QHST* files in QSYS (= history logs)
    3,040 pointsBadges:
    report
  • pdraebel
    If you suspect a running job to fill up your ASP use WRKACTJOB. Putting your cursor in the Column under CPU% and pressing F16 will sort the display with Highest CPU usage on Top. Same can be done for all columns on the display. Auxio could also be revealing.
    3,040 pointsBadges:
    report
  • ToddN2000
    Checking to see if a job is sucking up a large amount of CPU % may indicate a looping problem that may be filling up disk or creating massive spool files. If this was the case you would probably get "MEMBER FULL" or "SPOOLFILE HAS REACHED MAX SIZE" error messages.
    13,050 pointsBadges:
    report
  • pdraebel
    ToddN2000, that all depends on a lot of other factors. There is the *NOMAX file size, *PRTWRAP on Joblogs and more.
    Once one notices extraordinary behaviour in a system one has to check indications of what is causing those things to happen. An administrator has to feel the Pulse of his system(s) take its Temperature and than like a medic try and get at the root of the issue. Some questions just don't have a definite answer.
    3,040 pointsBadges:
    report
  • pdraebel
    There are a lot of "indicators" to check for when a system is showing extraordinary or unusual system parameters. Its like the doctor taking the patients temperature, pulse and bloodpressure. If those parameters are out of the line look for things that are causing them. 
    3,040 pointsBadges:
    report
  • ToddN2000
    I agree. Here we VERY rarely use the *NOMAX and *PRTWRAP. It makes it harder to catch the runaway applications. When our ASP starts creeping towards the threshold we start having users look into cleaning up their stuff like old spool files, query files. We recently started flagging files that we have repeatedly been running reorgs on to reuse deleted records (CHGPF   REUSEDLT   *YES).
    We have a simple CL that displays all file member to an *outfile

    DSPFD    FILE(#LIBRARY/*ALL) TYPE(*MBR) 

    We do this with the add option for all user and production libraries. Then we can run a simple WRKQRY or SQL and sort these by file size and or #deleted records.

    Makes cleanup a breeze.

    A plus to setting the reuse deleted records to *yes is you don't have to wait to rung reorg because the file is in use. 
    13,050 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following