Hi,
Le 12/06/2017 à 11:31, Guy Itzhaki a écrit : > Dear all, > > We are using the proxy example using mina 2.0.15. > > At the beginning everything looks good, but when we tried to funnel a 1GB > file the Proxy memory went high till the proxy doesn't receive new > connections. > > This is strange because I was expecting that every buffer will be cleared > once it is sent, so the proxy will not consume too much memory. This is a really rough implementation of a proxy. Typically, messages will have to be fully received in order to be written to the remote server, which means we hold it in memory until it's fully received. If you process 1Gb messages, then expect at least 1Gb of memory to be ate in the process (actually, expect a *lot* or reallocation during the message reception, as MINA will have to resize the buffer receiving the data...) In other words, you'll have to rework the example to fit your need. -- Emmanuel Lecharny Symas.com directory.apache.org
