[
https://issues.apache.org/jira/browse/SSHD-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Goldstein Lyor resolved SSHD-768.
---------------------------------
Resolution: Workaround
Fix Version/s: 1.7.0
[Added
capability|https://github.com/apache/mina-sshd/commit/e0a6b8da2b9b6af2fa6ff23fdcd76188ab1db2fe]
to register a {{ChannelStreamPacketWriterResolver}} through which one can wrap
the channel inside one's own code that can do throttling. See also
(experimental) {{ThrottlingPacketWriter}} example in _sshd-contrib_ module.
> Avoid unbounded message queueing when sending large amounts of data to slow
> clients
> -----------------------------------------------------------------------------------
>
> Key: SSHD-768
> URL: https://issues.apache.org/jira/browse/SSHD-768
> Project: MINA SSHD
> Issue Type: New Feature
> Affects Versions: 1.6.0
> Reporter: jpalacios
> Assignee: Goldstein Lyor
> Labels: channel, stability, stream, throttle
> Fix For: 1.7.0
>
>
> Our application runs an Apache MINA server to provide SSH support. We are
> seeing {{OutOfMemoryError}} s when certain clients establish a session with a
> large {{Window}} size. Particularly clients like TortoiseGit (which uses
> TortoisePlink which in turn seems to use Putty) use an initial window size of
> 2GB. From heap dumps we can see that the {{DefaultWriteRequestQueue}} is
> filling up with {{WriteRequest}} instances and taking up gigabytes of space
> until the heap blows.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)