[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
大家能不能分享一下你们是如何使用Ehcache的?  XML
Forum Index -> Terracotta 中文社区 Go to Page: 1, 2 Next 
Author Message
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

有多少人用:
A:Ehcache+Terracotta做分布式缓存
B:Ehcache+RMI等其它方式做缓存复制
C:单机Ehcache+Diskstore
D:单机Ehcache,全部数据再内存里

有多少人有:
E:分布式Ehcache,数据量不大,没有垃圾回收问题
F:分布式Ehcache,数据量比较大,有垃圾回收问题
G:单机版Ehcache,数据量不大,没有垃圾回收问题
H:单机版Ehcache,数据量比较大,有垃圾回收问题


谢谢!

老马
eric.sun

jedi

Joined: 10/02/2008 09:18:42
Messages: 123
Offline

Ehcache+Terracotta做分布式缓存 +1
分布式Ehcache,数据量不大,暂时没有垃圾回收问题 +1
youlq

journeyman

Joined: 04/28/2010 02:23:31
Messages: 25
Offline

服务器:
N L1+2 L2

应用:
ehcache,quartz

垃圾回收问题暂时没有碰到,不过内存里的ehcache对象缓存数量不多,10W级别的
dongen

master

Joined: 01/19/2010 19:07:23
Messages: 78
Offline

我是来看看马力的。好久没来terracotta了。依旧马力,还是这么犀利勤勤恳恳。。
jiejun

journeyman

Joined: 11/29/2010 21:24:17
Messages: 10
Offline

现在正在尝试A 目的是为了集群共享以部分数据,数据量不大,缓存考虑用不超时
下面要学习集群中quartz 的解决方案,看了一下稳定 似乎比较简单, 下午开始配置 哈哈
aoxu

neo

Joined: 01/17/2011 05:04:03
Messages: 6
Offline

我最近在研究Terracotta + Ehcache做纯缓存,还有很多不懂的地方。唉!
Gundam

neo

Joined: 07/21/2010 01:02:37
Messages: 7
Offline

D:单机Ehcache,全部数据再内存里
G:单机版Ehcache,数据量不大,没有垃圾回收问题

cache和element都设定了过期时间。
自己编写了listener捕获过期启动后期处理。
使用ehcache主要是为了利用cache的过期功能触发后续处理操作。
自己测试过ehcache+RMI方式缓存复制,目标是实现数据多应用服务器的分发,不过最后没有使用,因为部署的问题比较麻烦,服务器linux可能部署多台weblogic服务器做集群,原计划将ehcache集成到项目内使用,但是由于单机多中间件需要使用不同的端口,需要手工修改每个ehcache的配置文件中RMI复制部分的内容,最后没有采用。目前使用MQ的TOPIC模式分发数据。
yangjy

neo

Joined: 04/12/2011 23:25:43
Messages: 2
Offline

我们的业务系统是这么使用ehcache的:
A:Ehcache+Terracotta做分布式缓存
E:分布式Ehcache,数据量不大,没有垃圾回收问题


数据量不大,但是访问频率比较高。
chenshu

journeyman

Joined: 04/23/2011 02:55:21
Messages: 13
Offline

单机版 什么意思? 进程内Ehcach么?
我用的是Ehcache standalone server。目前系统原型开发阶段,数据量不大,今后会增加到4.7G左右或者更多。
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

Ehcache stand-alone server == Ehcache running inside Glassfish w/o any app. You talk to it via HTTP / REST. Its not in-process with your app.

If you want to store 4.7GB of data in cache though, I recommend Ehcache on top of BigMemory (paid product warning). 4.7GB is enough to cause normal Java GC to have tuning / pausing problems.

Cheers,

--Ari
[WWW]
chenshu

journeyman

Joined: 04/23/2011 02:55:21
Messages: 13
Offline

BigMemory是否要购买?有没有可能免费使用?第一次使用EhCache,我想我还没有足够的经验和数据来说服我的老板去购买。
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

BigMemory has no free version, sorry.

If you cannot convince your boss, don't worry. Just use free Ehcache and it will work. (You may have to tune JVM a bit for this much data.)

Then later, you can ask for BigMemory and Terracotta Server Array.

That's fine too :)
[WWW]
chenshu

journeyman

Joined: 04/23/2011 02:55:21
Messages: 13
Offline

Thanks.
chenshu

journeyman

Joined: 04/23/2011 02:55:21
Messages: 13
Offline

I changed my way.I replaced Ehcache standalone server with Ehcache server + glassfish v3.1.Because I didn't find a way to connect to embedded glassfish using JConsole.I can do it with glassfish server 3.1,just add two JVM parameters.
Also,I create one data node that consists of two Ehcache server running on two CentOS 64bit servers.RMI replicated mechanism is used between the two Ehcache servers.
An Nginx server running on another server provides VIP for all clients.All clients use this VIP(192.168.1.11) to talk to two Ehcache servers.

We are about to buy two Dell servers soon.I will dig into 64-bit JVM,because one guy said his friend could run 15GB heaps.
http://gregluck.com/blog/archives/2008/07/the-new-ehcache-server
lei_chen

neo

Joined: 05/22/2011 23:16:00
Messages: 9
Offline

目前在做的有B, D

正在嘗試A

目前做B, D的情形,應該是G
 
Forum Index -> Terracotta 中文社区 Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7 © JForum Team