Hi
i have a question about exchange creating in camel routes and ill explain my
issue with the following example knowing that i am using camel-2.15.1:
i have a simple camel route like this :



the Simple bean class is :



and the simple pojo is :



when i run this route then i check Jprofiler Live memory for objects
creating i found 100 SimplePojo instances and 600 DefaultExchange instances
living in the memory and never get collected by the GC,.

i decided to open the camel source code and noticed the copy method in the
DefaultExchange class which was being called several times and also the
constructors of the DefaultExchange class which results in creation of many
Instances of the DefaultExchange refrencing the simplePojo instances
preventing the GC from collecting them and free the memory.

i would like to ask why all these instences of the exchange object are being
created and why they are being referenced even after the route has completed
the execution, and why they still reference my pojo.
because as it is now this represent a very big memory leak issue.
thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/Lots-of-exchange-instances-are-being-created-tp5772941.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to