Skip to content

spring-integration-sftp leads to sshd-SshClien threads leaks #9373

Closed
@roma2341

Description

@roma2341

In what version(s) of Spring Integration are you seeing this issue?
6.3.2
Describe the bug
Recently I got exception:
Caused by: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
First I checked result of:
systemctl status myService
It showed me:
`Tasks: 4012 (limit: 9385) //usually this number shows me several thousands, I didn't check it at the moment when OOM happened, but I think it was near 9k

Then I made thread dump and saw that almost all threads are sshd e.g
sshd-SshClient[96ccf2f]-nio2-thread-2" #13237 [581081] daemon prio=5 os_prio=0 cpu=6.82ms elapsed=19393.97s tid=0x00007ff599190fa0 nid=581081 waiting on condition [0x00007ff4512fe000]

To Reproduce

I can't provide relevant examples now

Expected behavior

spring-integration-sftp thread leaks must not happen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions