activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Silga <jean.si...@net-vitesse.com>
Subject How can I limit the amount of messages kept in LRUCache?
Date Wed, 05 Jun 2013 15:19:03 GMT
Hi guys

We are currently using activemq for one of our project and we run into some
out of memory trouble lately. Our application performs some caching every
two hours: It reads the information to cache, encapsulates it in an
ActiveMQObjectMessage object, sends the ActiveMQObjectMessage object to a
topic so that the consumer can receive it and perform the caching. The
problem is that  the LRUCache is keeping up to 100 messages in its cache
(maxCacheSize=100), and this is causing an out of memory error because each
message is quite big (10 MB of size). I tried to solve the issue by using
the PrefetchPolicy feature, but that does not seem to have and impact on
how much messages are kept in LRUCache. Is it possible to specify the
amount of messages kept in the LRUCache? How ?

 Here are the versions of the plugins/frameworks I am using:
Activemq         5.4.0
JMS                 0.5.1
xbean-spring   3.6
Grails               1.3.6
Java                 1.6
I am using topics and non-persistent messaging.

Thank you very much

-- 


*Jean Silga *
Software Engineer at Netvitesse
+33 (0) 9 72 22 44 10

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message