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

Servers Crashed - Out Of Memory



We are experiencing frequent (~every few days) "java.lang.OutOfMemoryError" on our newly deployed PRODUCTION system. The JVM nodes need to be restarted.

Error Messages

java.lang.OutOfMemoryError: occuring in several contexts.

Steps to Reproduce

This is a PRODUCTION system: we have ~200 users per node - these users are running their normal day-to-day work: (which involves running reports).

Root Cause

It was found (from the ALERTS logs) that several 'unbounded' (no WHERE CLAUSE) SQL statements were being generated from a couple of places in our application.
Local Changes (code-fixes to activities - to limit the number of rows returned) were made to reduce the likelyhood of OOM occuring. (In fact, we found other contributing factors to high memory usage : these also have been addressed by making Local Changes to the Application.


By checking the ALERT logs: we saw PEGA0005 alerts which contains SQL statements which did not have a WHERE CLAUSE; the underlying tables it accessed had many (million) rows in them. Therefore the SQL run 'unbounded' - and downstream this caused the system to experience low memory conditions - sometimes severe enough to cause the OOM exception.

By cross-checking the GC logs for the same node and ~ the same time, we were able to confirm that the 'Free Nursey' (in particular) section of the HEAP were being rapidly used up during the running on these unbounded SQL, like this:

Published January 31, 2016 - 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