Many Pega0005 alerts on Pega-provided database tables
SummaryAfter you upgrade the system to the Pega 7 Platform, you notice that the following query runs several hundred times a day, increasingly degrading performance and blocking database retrieval with backed-up queries in queue.
UPDATE dbo.pr_sys_statusdetails SET pxType='interval' WHERE pxType = 'current' AND pySysNodeId = @P0 AND pyNodeName = @P1 AND pySystemName = @P2
Steps to Reproduce
- Upgrade to the Pega 7 Platform.
- Observe many Pega0005 alerts on database tables, degraded performance, and backed-up queries blocking database retrieval.
A defect in Pegasystems’ code causes the purge of the pr_sys_statusdetails table to not work correctly.
Examination of the pr_sys_statusdetails table shows that it contains old records since the upgrade that are not being purged by the system cleaner agent. Over 600,000 rows exist in the pr_sys_statusdetails table.
Perform the following local changes to resolve the issue.
|Create pyMaxRecentsCount Dynamic System Setting rule in the Pega-UIEngine' ruleset and set its value to 0 (zero) to not update the database.|
|Instances of the Log-Usage class, which (in the initial PegaRULES database schema) are stored in the pr_perf_stats table, support system-performance and usage reporting.
The instances in this class provide a cumulative history of past system usage across all nodes and all requestor types. Analyses of this data can provide valuable insights about the patterns and sources of processing demand, and can be helpful in performance tuning.
If it is important to keep the information for statistics, copy the content into an external table and then truncate the pr_perf_stats.
In the future, follow these steps:
Set a retention period shorter than the 30 days, add or revise the following element to your prconfig.xml file and restart the system:
<env name="usage/retentionperiod " value="nnn" />
where nnn is the number of days to retain."
|SPPR_SYS_RESERVEQUEUEITEM_B||Replace orderby := 'order by pzInsKey ASC';
clause with the below
orderby := 'order by pyMinimumDateTimeForProcessing ASC'
0% found this useful