camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: ProducerCache/LRUCache Memory leak ?
Date Sun, 24 Nov 2013 08:12:13 GMT
Hi

There is another cache setting you can tweak as well
http://camel.apache.org/how-do-i-configure-the-maximum-endpoint-cache-size-for-camelcontext.html

On Fri, Nov 22, 2013 at 3:45 PM, Hamid <lisbonne91@googlemail.com> wrote:
> Hi,
> I set the MAXIMUM_CACHE_POOL_SIZE to 50.
> I tested my Camel component with the new configuration. Unfortunately  I
> still have the same problem.
>
> Using the Eclipse analyzer I analyzed several dumps and the following are
> results :
>
> - dump at 11h47
> ==> 589 instances of org.apache.camel.util.LRUCache retain >= 42 175 824
> bytes
> - dump at 12h03
> ==> 589 instances of org.apache.camel.util.LRUCache retain >= 83 438 544
> bytes
> - dump at  12h16
> ==> 589 instances of org.apache.camel.util.LRUCache retain >= 112 168 896
> bytes
> - dump at  12h29
> ==> 589 instances of org.apache.camel.util.LRUCache retain >= 101 367 552
> bytes
> - dump at  13h39
> ==> 589 instances of org.apache.camel.util.LRUCache retain >= 126 107 840
> bytes
> - dump at  14h01
> ==> 589 instances of org.apache.camel.util.LRUCache retain >= 145 071 496
> bytes
>
> Any idea will be appreciated.
>
> Can you help
> Thanks
>
>
>
> On Fri, Nov 22, 2013 at 10:14 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>
>> See this FAQ
>>
>> http://camel.apache.org/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.html
>>
>> You can reduce the size of the cache, as it holds 1000 by default.
>>
>>
>> On Fri, Nov 22, 2013 at 10:11 AM, Hamid <lisbonne91@googlemail.com> wrote:
>> > Hi everybody,
>> >
>> > I'am using camel 2.5.0 with servicemix-3.5.0-fuse.
>> > My camel component deployed in servicemix causes a memory leak.
>> > When I anlyze a dump with Eclipse Memory Analyzer I saw that there are
>> 610
>> > instances of
>> > *org.apache.camel.util.LRUCache that retains 20% of memory (173 MO).*Is
>> > there any issue with ProducerCache objects that are not being garbage
>> > collected.
>> > Can you please help.
>> >
>> > Many thanks.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: cibsen@redhat.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message