[
https://issues.apache.org/jira/browse/GEODE-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15798102#comment-15798102
]
Avinash Dongre commented on GEODE-1510:
---------------------------------------
May be we can use
https://github.com/apache/hbase/blob/master/hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java
> Inaccurate size constants in GatewaySenderEventImpl.getSizeInBytes
> ------------------------------------------------------------------
>
> Key: GEODE-1510
> URL: https://issues.apache.org/jira/browse/GEODE-1510
> Project: Geode
> Issue Type: Bug
> Components: wan
> Reporter: Dan Smith
>
> This method adds together a lot of magic numbers to produce a size for the
> entry. The size is important because it is used for LRU eviction
> calculations; if the size is under reported the queue may end up consuming
> more memory than expected.
> The magic numbers used in this class do no appear to be correct for 64 bit
> VMs, based on the comments.
> This size method should be refactored to return an accurate size, preferably
> one that is measured rather than relying on these constants.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)