Improve readAhead cache size estimation to avoid OutOfMemory exception
----------------------------------------------------------------------
Key: BOOKKEEPER-47
URL: https://issues.apache.org/jira/browse/BOOKKEEPER-47
Project: Bookkeeper
Issue Type: Improvement
Components: hedwig-server
Affects Versions: 3.4.0
Reporter: Sijie Guo
Currently, ReadAhead Cache estimate the cache size just calculating the
message size. But the memory used by java objects, cache key are not included.
So the memory is consumed much faster than estimation, which cause OutOfMemory.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira