I'm using camel 2.7.1
here is a piece of my camelContext.xml file that is having the problem.
>From what I can tell, the problem is occurring inside the <split> tags and
that it is being exacerbated by the one to many activities associated with
the split. It looks like the split is creating a separate camelContext
instance or referring to a cached camelContext instance that is not being
released.
<camelContext id="camelContext" autoStartup="{{camel.autostart}}"
xmlns="http://camel.apache.org/schema/spring">
<jmxAgent id="agent" createConnector="true"
registryPort="{{jmx.port}}" />
<onException>
<exception>java.lang.NullPointerException</exception>
<handled>
<constant>true</constant>
</handled>
<to uri="log:xml?level=ERROR" />
</onException>
<onException>
<exception>java.sql.SQLRecoverableException</exception>
<handled>
<constant>true</constant>
</handled>
<to uri="log:xml?level=ERROR" />
</onException>
<route id="Poller" startupOrder="2"
autoStartup="{{route1.autostart}}">
<from uri="{{poller.timer}}" />
<bean ref="SharedLock" method="lock" />
<choice>
<when>
<simple>${in.header.inControl} ==
locked</simple>
<setHeader headerName="MeasurementList">
<spel>#{{"PollerRead","PollerTotal"}}</spel>
</setHeader>
<bean ref="Measurements"
method="startMeasurements" />
<setBody>
<simple>${properties:event.table.query}</simple>
</setBody>
<bean ref="ProcessOutputBody" />
<to uri="{{jdbc.raw.event.reader}}" />
<setHeader headerName="Measurement">
<constant>PollerRead</constant>
</setHeader>
<bean ref="Measurements"
method="endMeasurement" />
<wireTap uri="direct:measurement" />
<split parallelProcessing="true">
<simple>${body}</simple>
<to
uri="{{raw.event.publisher}}" />
<setBody>
<simple>${properties:event.table.update}${body[ENTRY_ID]}
</simple>
</setBody>
<bean ref="ProcessOutputBody" />
<to uri="{{jdbc.provider}}" />
</split>
<bean ref="SharedLock" method="unlock"
/>
<setHeader headerName="Measurement">
<constant>PollerTotal</constant>
</setHeader>
<bean ref="Measurements"
method="endMeasurement" />
<wireTap uri="direct:measurement" />
<bean ref="Measurements"
method="showMeasurements" />
</when>
</choice>
</route>
--
View this message in context:
http://camel.465427.n5.nabble.com/LRUCache-memory-leak-when-using-camel-properties-file-tp4621357p4624798.html
Sent from the Camel - Users mailing list archive at Nabble.com.