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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.