Dear Camel Experts,

I'm having a problem using camel with tomcat as the container. For some
reason after several stop/restarts or redeployments the application generate
a java.lang.OutOfMemoryError And I need to restart tomcat

I tried to simplify the problem and discover the same behavior using the
examples in the official release package. Mainly I downloaded:
http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.15.2/apache-camel-2.15.2.tar.gz

And generated the WARs using mvn install for the following examples:
 - camel-example-servlet-tomcat-no-spring
 - camel-example-servlet-tomcat

Then deployed any of the WARs generated to tomcat: 7.0.55.

So when I open the tomcat manager and click the button stop, the application
stop gracefully but when I click the button "Find Leaks", tomcat manager
displays the following: 

The following web applications were stopped (reloaded, undeployed), but
their
classes from previous runs are still loaded in memory, thus causing a memory
leak (use a profiler to confirm):
/camel-example-servlet-tomcat-no-spring-2.15.2


I also verified the same behaviour using a profiler, when start and then
stop is clicked several times the application generates and the OutOfMemory
error and tomcat needs to be restarted

Thanks in advance for any help or guidance! 
 Best Regards
   Juan Pablo







--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-with-Tomcat-with-or-without-Spring-doesn-t-release-memory-after-Stop-Restart-or-Redeployment-tp5767577.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to