[ https://issues.apache.org/jira/browse/CAMEL-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043394#comment-13043394 ]
Claus Ibsen commented on CAMEL-4042: ------------------------------------ The thread pools is shutdown when the CamelContext is shutdown (eg you call stop on it). It seems for me that the CamelContext may be re-used when running multiple tests in the same unit test class. The thread pools should only be shutdown when you shutdown Camel as you should be able to stop a route etc. and then start it again, without having issues with thread pools not being able to restart itself. When you have invoked shutdown on a thread pool, its dead forever. > Shutdown the thread pool when the test is over > ---------------------------------------------- > > Key: CAMEL-4042 > URL: https://issues.apache.org/jira/browse/CAMEL-4042 > Project: Camel > Issue Type: Improvement > Components: tests > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 2.8.0 > > > The thread size will keep increasing when we run the tests of camel. > After digging the code for a while I found there are lots of thread pool are > never shutdown when the test is over. > We should release these resources after running test. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira