Wrkprb needs long time to start: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
(New)
 
(1150)
Line 1: Line 1:
Over time, it might become apparent that '''Wrkprb needs longer time to start''', especially if the problem handling facility was used heavily.
Over time, it might become apparent that '''Wrkprb needs longer time to start''', especially if the problem handling facility was used heavily on a slow machine.<ref>Like a 150.</ref>


This stems from the fact that the used database files grow indefinitely, because they were created with the flag ''REUSEDLT'' disabled. That means, deleted records stay forever, but cannot be accessed. In my case, the PF hat 36&thinsp;MiB, and the accompanying LF 24&thinsp;MiB.
This stems from the fact that the used database files grow indefinitely, because they were created with the flag ''REUSEDLT'' disabled. That means, deleted records stay forever, but cannot be accessed. In my case, the PF hat 36&thinsp;MiB, and the accompanying LF 24&thinsp;MiB.

Revision as of 12:56, 25 July 2020

Over time, it might become apparent that Wrkprb needs longer time to start, especially if the problem handling facility was used heavily on a slow machine.[1]

This stems from the fact that the used database files grow indefinitely, because they were created with the flag REUSEDLT disabled. That means, deleted records stay forever, but cannot be accessed. In my case, the PF hat 36 MiB, and the accompanying LF 24 MiB.

A possible solution would be to use RGZPFM to reorganise the database file. But the command refuses to work on an empty database file.[2]

Another possibility is to delete and recreate the members of the files in question. Members are bound to the record structure laid out in the file itself. So deleting and re-adding file members does no harm except getting rid of all the deleted records.

RMVM FILE(QUSRSYS/QASXPROB2) MBR(QASXPROB2)
RMVM FILE(QUSRSYS/QASXPROB) MBR(QASXPROB)
ADDPFM FILE(QUSRSYS/QASXPROB) MBR(QASXPROB)
ADDLFM FILE(QUSRSYS/QASXPROB2) MBR(QASXPROB2)

To prevent this from happening again, allow the OS to reuse allocated space.

CHGPF FILE(QUSRSYS/QASXPROB) REUSEDLT(*YES)[3]

This approach applies also to any other database file showing significant slowdown over time.

Footnotes

  1. Like a 150.
  2. One with no records, that is.
  3. Since there's no reusedlt parameter for CHGLF, I wonder why the index needed so much space.