Re: memory leak in Camel
Its a bit hard to help when there is no more details about Camel and
what Camel routes you have etc.
Maybe you can build a sample project that can be used to demonstrate /
reproduce the issue you see.
Also there is some tips on support here in the bulleted list
On Wed, Jun 27, 2018 at 4:29 PM, <christian.jacob@xxxxxxxxxx> wrote:
> Hi there,
> I have the following problem: I’m running a Camel application that is
> triggered by a RESTful POST call. With each trigger, it contacts certain
> http addresses, downloads files to the file system, parses them, and sends
> some parsed informations to another service with a REST call.
> All this is executed on VERY large data amount with many files and so on. My
> problem is: I run into a severe memory leak.
> I’ve installed JProfiler and was trying to catch that leak. What is amazing
> to me is that there are after only a couple of minutes about 100 000 objects
> of the type “TreeMap$Entry”. I drilled down to them in JProbe and found that
> there are lots of message headers in main memory, for example things like
> Connection=keep alive
> All these entries waste the main memory, and even garbage collection does
> not get rid of them. My expectation is that after the steps I’ve described
> in my first sentence have finished, the main memory should almost look as
> empty as it was before the first entry of the RESTful call.
> Please find attached an xml file that is exported from JProfiler:
> And this HTML file was also exported by JProfiler and may have a clearer
> view on what was going on:
> I’m having a hard time these days because I’m fighting with my colleagues to
> use Apache Camel. If they’ve found that memory leak, I’m going to lose that
> battle. So please help.
> Many thanks in advance!
> Kind regards,
> Christian Jacob
> Innogy SE
> Retail IT
> Integration and Digital Solutions (AFS-IGI)
> Rellinghauser Str. 37
> 45128 Essen
> T intern: 70-20581
> T extern: +49 (0)201 12 20582
> T mobil: +49 (0)1622843981
> Fax: +49 (0)201 12 24796
> mailto: christian.jacob@xxxxxxxxxx
> innogy SE
> Vorsitzender des Aufsichtsrates: Dr. Erhard Schipporeit
> Vorstand: Uwe Tigges (Vorsitzender), Dr. Hans Buenting,
> Dr. Bernhard Guenther, Arno Hahn, Martin Herrmann, Hildegard Mueller
> Sitz der Gesellschaft: Essen, Eingetragen beim Amtsgericht Essen,
> Handelsregister-Nr. HRB 27091, USt-IdNr. DE304171711
Camel in Action 2: https://www.manning.com/ibsen2