Cache Design
1. Estimate Cache Memory needed for caching 1 million entries of a Java object
About
1. Object Overhead (JVM Internal Structure)
Component
Size (Bytes)
Description
2. Estimated Field Composition (Example: 10 Fields)
Field Type
Count
Estimated Size
Notes
3. Additional Memory Per Entry (Cache-Level Overhead)
Component
Estimated Size
Description
4. Total Estimated Memory Usage
Buffering for Safety
5. How to Measure Actual Memory Usage (Empirical Approach) ?
2. LRU Cache
Last updated