Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

OutOfMemory error when activating SystemCleaner agent



OutOfMemory error occurs when activating the SystemCleaner agent. This occurs for a cluster environment with four nodes. This results in large amounts of data in the PR_SYS_CONTEXT and PR_PAGE_STORE tables.

Error Messages

615 [fault (self-tuning)'] [STANDARD] [an_app:0x.0x] (internal.async.Agent) ERROR - Encountered unhandled exception during agent processing
java.lang.OutOfMemoryError: Java heap space

Steps to Reproduce

Start the SystemCleaner agent.

Root Cause

A large amount of passivation data was accumulated in the PR_SYS_CONTEXT and PR_PAGE_STORE tables. This caused the SystemCleaner agent overhead.


Perform the following local-change:
  1. Delete the obsolete passivation data older than three days (to account for weekends) from the PR_PAGE_STORE and PR_PAGE_STORE tables.
  2. Create a backup of the database before a direct manipulation.
  3. Use the below SQL queries to delete the obsolete data:
  • SELECT * FROM <data schema name>.pr_page_store INNER JOIN <data schema name>.pr_sys_context ON <data schema name>.pr_page_store.pyrequestorid = <data schema name>.pr_sys_context.pxrequestorid WHERE <data schema name>.pr_sys_context.pxcreatedatetime < '<3 days ago>';
  • SELECT * FROM <data schema name>.pr_sys_context WHERE pxcreatedatetime < '<3 days ago>';

Note: Enter these queries as SELECTs to verify which data to delete. Change to DELETE queries upon confirmation that the correct records are selected for deletion.

Published March 18, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us