camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9319) SshClient resource leak when used from ProducerTemplate
Date Mon, 16 Nov 2015 16:38:11 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006892#comment-15006892
] 

Andrea Cosentino commented on CAMEL-9319:
-----------------------------------------

Now it should be ok. I've attached a five minutes Junit Producer Test with 500 messages. It
looks good.

> 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
>
>         Attachments: testCamel9319.png
>
>
> 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)

Mime
View raw message