专栏名称: ImportNew
伯乐在线旗下账号,专注Java技术分享,包括Java基础技术、进阶技能、架构设计和Java技术领域动态等。
今天看啥  ›  专栏  ›  ImportNew

JVM 初探——使用堆外内存减少 Full GC(下)

ImportNew  · 公众号  · Java  · 2017-01-20 21:01
(点击上方公众号,可快速关注)来源:翡青,blog.csdn.net/zjf280441589/article/details/54406665如有好文章投稿,请点击 → 这里了解详情第2组: off-heap、not affect by GC、need serializeEhcacheApppublic class EhcacheApp extends AbstractAppInvoker {     private static Cache cache;     static {        ResourcePools resourcePools = ResourcePoolsBuilder.newResourcePoolsBuilder()                .heap(1000, EntryUnit.ENTRIES)                .offheap(480, MemoryUnit.MB)                .build();         CacheConfiguration configuration = CacheConfigurationBuilder                .newCacheConfigurationBuilder(String.class, FeedDO.class, resourcePools)                .build();         cache = CacheManagerBuilder.newCacheManagerBuilder()                .withCache("cacher", configuration)  ………………………………

原文地址:访问原文地址
快照地址: 访问文章快照