Dan Smith created GEODE-1177:
--------------------------------
Summary: Session replication local cache is reporting bad object
sizes
Key: GEODE-1177
URL: https://issues.apache.org/jira/browse/GEODE-1177
Project: Geode
Issue Type: Bug
Components: http session
Reporter: Dan Smith
The session replication module has a local cache that uses heap LRU - See
PeerToPeerSessionCache.createOrRetrieveLocalRegion.
When using LRU, the region uses an object sizer to determine the size of the
objects. The default object sizer finds all reachable objects using reflection
for the first value in the region, and then reuses that size for all subsequent
values of the same class. See EvictionAction.createLRUHeapAttributes().
In the case of session replication, it looks like we put a GemfireHttpSession
in the region. Unfortunately, that has references back to the session manager,
which has references to an InternalDistributedSystem, which in turn pulls in a
whole lot of junk.
So the size of the objects reported by the sizer for this local cache are
probably completely wrong, which might affect the behavior of the heap LRU.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)