Memory Leak In production Using Stateful HTML Services
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.
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.
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
Apply Hfix-22590 and add prconfig switch:
<env name="initialization/EnableHashCodeByteArrayCaching" value="false"/>