`
carlosfu
  • 浏览: 576817 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
Ba8b5055-9c58-3ab0-8a1c-e710f0495d2c
BigMemory实战与理...
浏览量:30528
53b2087e-c637-34d2-b61d-257846f73ade
RedisCluster开...
浏览量:150210
C9f66038-7478-3388-8086-d20c1f535495
缓存的使用与设计
浏览量:123524
社区版块
存档分类
最新评论

BigMemory系列文章--3. Ehcache存储层级(tier)

阅读更多

转载请注明出处哈:http://carlosfu.iteye.com/blog/2237511


 

一、Ehcache存储层级示意图:

 

二、层级说明

 

1、MemStore(通常指堆内存储)

(1) 堆内存储,受制于GC

(2) 理论上最快,可以存储序列化和非序列化数据

(3) 线程安全

(4) 如果使用了OffHeapStore,那么MemStore保存The hottest subset of data from thre OffHeapStore.

 

2、OffHeapStore(堆外内存:被称为BigMemory):

有关堆外内存:可以参考如下文章:http://calvin1978.blogcn.com/articles/directbytebuffer.html

只在企业版本的Ehcache(BigMemory)中提供,原理是利用nio的DirectByteBuffers实现,比存储到磁盘上快,而且完全不受GC的影响,可以保证响应时间的稳定性;但是direct buffer的在分配上的开销要比heap buffer大,而且要求必须以字节数组方式存储,因此对象必须在存储过程中进行序列化,读取则进行反序列化操作,它的速度大约比堆内存储慢一个数量级。

(注:direct buffer不受GC影响,但是direct buffer归属的的JAVA对象是在堆上且能够被GC回收的,一旦它被回收,JVM将释放direct buffer的堆外空间。)

(1) 堆外内存,不受制于GC

(2)  只在Bigmemory中能用,Ehcache不支持。

(3) 堆外内存使用字节码存储,所以只能存储序列化数据

 

3、DiskStore(磁盘存储):

(1) 只能存储序列化的数据。

(2) 此数据层是可选的,不是必须的

 

  • 大小: 63 KB
分享到:
评论

相关推荐

    Ehcache 2.10.8(bigmemory-max-4.3.8.4.2.tar.gz)

    Ehcache 2.10.8是该产品的特定版本,它包含了针对缓存管理和优化的一系列特性和改进。在bigmemory-max-4.3.8.4.2.tar.gz这个压缩包中,我们可以找到与Ehcache 2.10.8相关的所有组件和配置文件。 1. Ehcache的核心...

    ehcache-3.9.9-API文档-中英对照版.zip

    赠送jar包:ehcache-3.9.9.jar; 赠送原API文档:ehcache-3.9.9-javadoc.jar; 赠送源代码:ehcache-3.9.9-sources.jar; 赠送Maven依赖信息文件:ehcache-3.9.9.pom; 包含翻译后的API文档:ehcache-3.9.9-javadoc-...

    Ehcache 2.10.8 .tar.gz(bigmemory-max-4.3.8.4.2.tar.gz)

    Ehcache 2.10.8是该系统的一个版本,而bigmemory-max-4.3.8.4.2是Tangosol公司的BigMemory Max产品,它扩展了Ehcache的功能,提供了超大规模内存存储解决方案。 Ehcache 2.x系列是其历史上的一个稳定版本,支持多种...

    hibernate jar包:hibernate-commons-annotations-4.0.1.Final.jar等

    hibernate-ehcache-4.1.12.Final.jar hibernate-entitymanager-4.1.12.Final.jar hibernate-jpa-2.0-api-1.0.1.Final.jar hibernate-search-4.2.0.Final.jar hibernate-search-analyzers-4.2.0.Final.jar hibernate-...

    hibernate-ehcache-4.3.9.Final.jar

    该包是hibernate中所用的一个包,专门用来去处理特定的问题,它是和ehcache一起用的一个包

    ehcache-core-2.6.11-API文档-中英对照版.zip

    赠送jar包:ehcache-core-2.6.11.jar; 赠送原API文档:ehcache-core-2.6.11-javadoc.jar; 赠送源代码:ehcache-core-2.6.11-sources.jar; 赠送Maven依赖信息文件:ehcache-core-2.6.11.pom; 包含翻译后的API文档...

    ehcache缓存jar(ehcache-core-2.4.6.jar+ehcache-web-2.0.4.jar)

    ehcache缓存jar(ehcache-core-2.4.6.jar+ehcache-web-2.0.4.jar)

    mybatis-ehcache-1.0.2.jar

    mybatis-ehcache-1.0.2.jar META-INF/LICENSE META-INF/MANIFEST.MF META-INF/NOTICE META-INF/maven/org.mybatis.caches/mybatis-ehcache/pom.properties META-INF/maven/org.mybatis.caches/mybatis-ehcache/pom....

    ehcache.rar ehcache-core-2.6.10.jar依赖包

    ehcache-core-2.6.10.jar依赖包 MyBatiesEhCache二级缓存 Ehcache是一种广泛使用的开源Java分布式缓存。主要面向通用缓存,Java EE和轻量级容器。它具有内存和磁盘存储,缓存加载器,缓存扩展,缓存异常处理程序,一个...

    ehcache-core-2.5.0.jar

    jar包,官方版本,自测可用

    cvc-complex-type.2.4.d: Invalid content was found

    在给定的上下文中,我们有两个相关的XML Schema文件:`springmodules-ehcache.xsd` 和 `springmodules-cache.xsd`。这两个文件可能定义了Spring框架中关于缓存配置的规则。在处理Spring的XML配置文件时,如果缓存...

    hibernate-ehcache-4.1.0.Final.jar

    hibernate-ehcache-4.1.0.Final.jar 是hibernate4.1使用缓存的jar包

    hibernate-ehcache-3.3.2.GA.jar

    hibernate-ehcache-3.3.2.GA.jar

    ehcache-core-2.4.5.jar

    Ehcache是一个开源的Java缓存库,广泛用于提高应用程序性能,通过存储中间结果和频繁访问的数据来减少数据库查询和计算。"ehcache-core-2.4.5.jar"是Ehcache的核心库,该版本为2.4.5,包含Ehcache的基本功能和API。...

    ehcache-core-2.6.10.jar

    ehcache-core-2.6.10.jar专用包,欢迎下载 ehcache-core-2.6.10.jar ehcache-core-2.6.10.jar ehcache-core-2.6.10.jarehcache-core-2.6.10.jarehcache-core-2.6.10.jar

    cas-client-support-distributed-ehcache-3.2.0.jar

    cas-client-support-distributed-ehcache-3.2.0.jar

    ehcache-2.7.3-distribution.tar.gz

    3. "ehcache-2.7.3-distribution.tar.gz":这是原始的压缩文件,可能包含了源码、库文件、配置示例以及其他的辅助工具。 4. "EHCache_技术文档.pdf":另一份EHCache的技术文档,可能是PDF格式,可能提供与DOC文件...

    ehcache-1.6.2-distribution.tar.gz

    Ehcache是一个开源的、高性能的缓存解决方案,广泛应用于Java应用程序中,以提升系统性能和减少数据库负载。本文将详细解析Ehcache 1.6.2和2.7.0这两个版本的分布包。 首先,我们来看"ehcache-1.6.2-distribution....

    shiro-jar-1.7.0.zip相关资源包

    解决:升級1.7后附件中文路径报400错误的问题 ...shiro-ehcache-1.7.0.jar shiro-spring-1.7.0.jar shiro-web-1.7.0.jar CustomShiroFilterFactoryBean.java spring-context-shiro.xml 修改说明.txt

    ehcache所需jar包

    ehcache所需jar包 cglib-nodep-2.2.jar ehcache-core-2.5.2.jar ehcache-spring-annotations-1.2.0.jar guava-13.0.1.jar ehcache-terracotta-2.5.2.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar terracotta-...

Global site tag (gtag.js) - Google Analytics