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

Extreme Slowness - Out of memory issue observed



Frequently observed the java exception with Pega 7.2.

Error Messages

java.lang.OutOfMemoryError: PermGen space.

Steps to Reproduce

Not Applicable

Root Cause

DirectStreamEncoder within PRPC represents the serialized version of a Clipboard Page.


Here is the explanation:

Add prconfig entry below (recycle JVM) which resets the DirectStreamEncoder object’s contents before returning the instance to the pool, that is, all ArrayList and byte[] references are reset to their default size like 8 for ArrayList and 1024 for byte[].

Otherwise with the current state, the memory footprint can grow depending on the size of clipboard pages loaded concurrently.

The corresponding clipboard page may not be in use anymore but the encoder will continue to exist until picked again (and the new size corresponds to the new clipboard page being loaded).

This non-default DirectStreamEncoder size in memory has no impact on the performance with clipboard page operations, so use setting below to maintain a low referenced or live object memory footprint:

<env name="clipboard/encoder/poolConfig" value="reset-contents" />

Published May 16, 2017 - 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