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

Memory Leak In production Using Stateful HTML Services

SA-11756

Summary



User is seeing JVM heap grow over time. Due to this the JVM crashes and user has to restart the JVM. They would like to determine the root cause.

Error Messages



No errors. Increase use of memory over 5-10days.

Steps to Reproduce



Allow stateful requestors to passivate. The in memory data consits of deeply embedded data. 

Root Cause



Encoding during passivation and other events are equally problematic with the code caching property ref hashcode.  This could be magnified with nested list structure and all combination of these property reference hash caching.  

With hotfix and prconfig switch, this map will no longer be used to cache the property name-hashcode entries. The hashcode will be generated every time and byte array for the same will be obtained from ByteArrayFactory


Resolution



Apply Hfix-22590 and add prconfig switch:
<env name="initialization/EnableHashCodeByteArrayCaching" value="false"/>

 

Published July 10, 2015 - 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