[
https://issues.apache.org/jira/browse/CAMEL-9319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino resolved CAMEL-9319.
-------------------------------------
Resolution: Fixed
> SshClient resource leak when used from ProducerTemplate
> -------------------------------------------------------
>
> Key: CAMEL-9319
> URL: https://issues.apache.org/jira/browse/CAMEL-9319
> Project: Camel
> Issue Type: Bug
> Components: camel-ssh
> Affects Versions: 2.16.0, 2.15.4
> Environment: Any OS, any hardware, tested with Spring-Boot.
> Reporter: Daniel Gruszczyk
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 2.16.2, 2.17.0
>
>
> When using ProducerTemplate for execution of an ssh command (i.e.
> {{producerTemplate.requestBody("ssh://...", String.class)}}), 11 threads are
> being created, that are never killed. Any subsequent calls create new
> threads, eventually this exhausts memory and thread resources on the machine.
> These threads are not being killed even when explicitly stopping the
> ProducerTemplate.
> Here is a more detailed discussion, together with profiler results and code
> to reproduce the issue:
> http://stackoverflow.com/questions/33671567/spring-boot-camel-producertemplate-thousands-of-threads
> http://camel.465427.n5.nabble.com/Spring-Boot-Camel-producerTemplate-ssh-spawning-thousands-of-threads-td5773741.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)