Daniel Gruszczyk created CAMEL-9319:
---------------------------------------
Summary: 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.15.4, 2.16.0, 2.15.3, 2.15.2, 2.15.1, 2.15.0
Environment: Any OS, any hardware, tested with Spring-Boot.
Reporter: Daniel Gruszczyk
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)