ITeye博客

ehcache

共 14 篇文章

Carlosfu技术系列文章总目录

转载请注明出处哈: http://carlosfu.iteye.com/blog/2240426 刚看了一下这个账号是2009年注册的,当时可能是为了下载javaeye的周刊吧,后来12年开始工作时候,零零散散的转了几篇别人的。 为什么重写开始写博客了呢?我想现在工作已经快4年了,觉得有些东西需要积淀一下,其实期间一直坚持用有道云笔记记录工作中遇到的问题和学到的知识(已经突破800篇了 )。 为什么不放在博客上与大家分享,我想不外乎两个原因:一是有些公司的内容,不适合放在网上。二是我一直认为,凡是给别人看的文档或者讲座不能太应付了事,不能不太差,太low?笔记格式相对松散些。 那是不是觉得现…

2015-09-03 14:41 · ehcache · bigmemory · 缓存 · cache · mybatis · redis · Redis · 缓存 · MyBatis · ehcache

BigMemroy系列文章--11. BigMemory中的SizeOf问题

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 感谢博主: hot66hot.iteye.com/ 一:BigMemory如何使用DirectMemory内存 以下是bigMemory启动时打印的DirectMemory分区概述: Maximum Size (specified) : 32MB Minimum Chunk Size : 8MB Maximum Chunk Size : 32MB Concurrency : 16 Initial Segment Table Size : 64 slots Segment Data Page Si…

2015-08-31 16:06 · ehcache · bigmemory · 缓存 · cache · 序列化 · JMM · sizeof

BigMemroy系列文章--12. Ehcache和BigMemory常见问题

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 问题目录: 一、Ehcache、BigMemory Go和BigMemory Max的关系 二、copyOnRead配置分析 三、BigMemory的sizeOf问题: 四、timeToLive和timeToIdle配置分析 五、Ehcache的统计配置和说明: 六、Ehcache的常用的eviction算法: 七、MaxEntries和MaxBytes配置选择问题: 八、哪些配置参数可以运行时动态修改 九、Ehcache批量操作优化: 十、是否要使用磁盘 十一、Element生命周期 十二、序…

2015-08-31 15:37 · ehcache · bigmemory · 缓存 · cache · ehcache · sizeof

BigMemroy系列文章--10.BigMemory监控系统(TMC)搭建

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、TMC(Terracotta Management Console)简介: BigMemory提供了一套监控和管理系统,来管理Bigmemory Go或者BigMemory Max,通过这个系统可以有效的观察数据,管理数据,动态修改配置。 二、TMC实现原理浅析: 从上图中,可以看出: 1. 每个BigMemory内置了http容器(可能是jetty), 对外提供Rest api来管理查询BigMemory数据和配置。 2. 如果使用BigMemory max(分布式集群版本), 应该还有个…

2015-08-29 09:28 · ehcache · bigmemory · 缓存 · cache · console · TerraCotta

BigMemroy系列文章--9. BigMemory新增(相比Ehcache)

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、Ehcache、BigMemory Go和BigMemory Max的关系 (1) terracotta收购了Ehcache,在Ehcache基础上开发了商业版的BigMemory Go(单机版:有试用期)和BigMemory Max(集群版:收费)。 (2) BigMemory支持使用堆外内存,有效利用本机内存并有效防止GC。 (3) Ehcache和BigMemory的API几乎完全一致。 二、Bigmemory的配置相对于Ehcache添加了两个属性: maxBytesLocalOff…

2015-08-28 08:42 · ehcache · bigmemory · 缓存 · cache · ehcache

BigMemroy系列文章--8. Bigmemory快速接入实战

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 更多BigMemory Go可参考官方文档: http://www.terracotta.org/documentation/4.0/bigmemorygo 一、BigMemory证书: (1). 由于BigMemory是商业版,需要从官网上注册、下载证书(目前只支持90天)和对应版本的jar包: 下载地址: http://terracotta.org/downloads/bigmemorygo ,完成表单填写,完成下载。 (2). 可以将证书放到classpath下,或者加入启动参数: -Dc…

2015-08-27 09:46 · ehcache · bigmemory · 缓存 · cache · 序列化

BigMemroy系列文章--7.BigMemory相关资料

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、官方文档: http://terracotta.org/documentation/4.1/bigmemorygo 二、文章: Ari Zilka谈Ehcache的进程内堆外缓存BigMemory Terracotta的BigMemory力图消除针对Java缓存的垃圾回收 Java堆外内存扫盲贴 5 Reasons to Upgrade Ehcache to BigMemory Go 三、示例代码: http://www.terracotta.org/documentation/4.0/bi…

2015-08-24 09:54 · ehcache · bigmemory · 缓存 · cache · ehcache · TerraCotta

BigMemory系列文章--目录

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 BigMemory系列文章: BigMemory系列文章--1. Ehcache是什么 BigMemory系列文章--2. Ehcache快速接入 BigMemory系列文章--3. Ehcache存储层级(tier) BigMemory系列文章--4. Ehcache重要类和常用API BigMemory系列文章--5. Ehcache配置和统计数据 BigMemory系列文章--6. Ehcache扩展功能--Jmx、同步 BigMemory系列文章--7. BigMemory相关资料 Bi…

2015-08-24 09:48 · ehcache · bigmemory · 缓存 · cache · JMX · ehcache · sizeof

BigMemroy系列文章--6. Ehcache扩展功能--Jmx、同步

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、使用JMX监控和管理Ehcache ehcache-core.jar中的net.sf.ehcache.management包提供了基于JMX标准的MBeans和ManagementService用于对ehcache进行监控和管理。 1. net.sf.ehcache.management包下类具体如下图: 2. Ehcache MBeans CacheManager: Cache管理,可以对应多个Cache。 Cache: Cache的状态,类型等等。 CacheConfiguration:…

2015-08-24 09:40 · ehcache · bigmemory · 缓存 · cache · Cache · JMX

BigMemory系列文章--5. Ehcache配置和统计数据

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 Ehcache默认启动jmx,对Ehcache的使用状态、配置和统计信息进行监控。 一、使用状态: Name: 缓存名 Status: 状态 TerracottaClustered: 是否是bigmemory集群模式(bigmemory max) 二、配置信息: (对应到ehcache.xml中的自定义配置和默认配置) DiskExpiryThreadIntervalSeconds: 每xx秒检查硬盘的数据是否有过期的 DiskPersistent: 是否做硬盘持久化 DiskSpoolBuff…

2015-08-23 17:48 · ehcache · JMX · ehcache · monitor

BigMemory系列文章--4.Ehcache重要类和常用API

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、Ehcache三个重要的类 1. CacheManager: 管理Cache 2. Cache: 管理K-V缓存对象 3. Element: K-V缓存对象 下面这张图形象表现三者的关系: 二、Ehcache常用API 1. 创建CacheManager有多种方法: CacheManager.newInstance(Configuration configuration) – Create a new CacheManager or return the existing one named…

2015-08-23 17:47 · ehcache · bigmemory · 缓存 · cache · Cache · element

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.b…

2015-08-23 17:47 · ehcache · bigmemory · 缓存 · cache · memstore

BigMemory系列文章--2.Ehcache快速接入

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、依赖 1. ehcache依赖 <ehcache.version>2.6.11</ehcache.version> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>${ehcache.version}</version> </dependency> 2. ehcache依赖树: mvn dependency:tree [INFO] \- net.sf.e…

2015-08-23 17:46 · ehcache · bigmemory · 缓存 · cache · Cache · junit · logback · ehcache

BigMemory系列文章--1.Ehcache是什么

转载请注明出处哈: http://carlosfu.iteye.com/blog/2237511 一、Ehcache背景 1. 官方文档的解释: What is Ehcache? Ehcache is an open-source, standards-based cache for boosting performance, offloading your database, and simplifying scalability. As a robust, proven, and full-featured solution, it is today’s most widely used…

2015-08-23 17:45 · ehcache · bigmemory · 缓存 · cache · Cache · 缓存 · ehcache · TerraCotta