![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ehcache
MQCloud
https://github.com/sohutv/mqcloud
展开
-
ehcache之offheap部分重要类说明
PageSource页源,负责页分配,默认是的实现是:UpfrontAllocatingPageSource-预交付的page源。重要属性:List buffers = new ArrayList<>();存放分配好的内存块(chunk),最大1G。List<PowerOfTwoAllocator> sliceAllocators = new Arra...原创 2020-04-07 14:23:29 · 757 阅读 · 0 评论 -
ehcache之offheap
一、背景offheap作为摆脱gc的本地缓存来使用,对于缓存大量数据和提升应用的性能大有裨益。EHCache的offheap层直接使用了Terracotta-OSS开源的offheap-store作为底层实现。但是offheap-store包含了一系列的算法和数据结构的设计和使用,很多地方借鉴了操作系统的知识,比如内存分页设计,时钟置换算法,内存分配等等,由此可见涉及到内存管理的都是比较复杂...原创 2020-04-07 14:21:09 · 1917 阅读 · 0 评论