Which LRUCache are you talking about?
On Wed, Jun 5, 2013 at 8:19 AM, Jean Silga <jean.si...@net-vitesse.com>wrote: > 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 > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta