Le 1/10/13 4:08 AM, Alan Cabrera a écrit :
Yes, wondering where that went too.
I've asked in the JIRA.
We also have the same issue for MINA branches, as we are still working
on 2.0.8
The infra peeps are damn busy those days, so it may take a bit of time.
--
Regards,
Cordialement,
Emmanuel
Hi!
I saw some benchmarks of direct vs. heap buffers - but I can't remember a
single one where direct buffers were a *big* performance gain. If you're
copying the buffers just to make it perform better, you'll probably get a huge
performance penality caused by the copy-logic itself.
Maybe
The performance gain is not related to the nature of the buffer; I mean
writing to an HeapBuffer vs writing to a DirectBuffer but related to
writing the buffer to the socket: if you write an HeapBuffer to a socket,
my guess is that it will be copied to a DirectBuffer before it gets written
to the
Le 1/10/13 10:56 AM, Jeff MAURY a écrit :
The performance gain is not related to the nature of the buffer; I mean
writing to an HeapBuffer vs writing to a DirectBuffer but related to
writing the buffer to the socket: if you write an HeapBuffer to a socket,
my guess is that it will be copied to
to be a little bit more precise, you will copy 64Mb the first time then
64Mb - 64kb the second time and so on
Jeff
On Thu, Jan 10, 2013 at 12:11 PM, Emmanuel Lécharny elecha...@gmail.comwrote:
Le 1/10/13 10:56 AM, Jeff MAURY a écrit :
The performance gain is not related to the nature of
Hi,
I use apache mina sshd server for SFTP transfert.
When a client to successfully to server,
I can see in log:Session created..., the client version and the succes
authentification.
But i have a problem when a client want connect to server and send no
response.
When the server send her
Ok I have conducted some experimentations :
1) The HeapBuffer is copied into a DirectBuffer before being written
We see a dramatic performance improvement for the forth test (64Mb
messages), which now takes 14seconds to complete, instead of
timeouting, but the three first tests are going 15%
I have played a bit more...
Now, I create a DirectBuffer whn the session is created, its size being
equal to the SendBufferSize, and I reuse this buffer if I can write the
message immediately. If not, or if I can't write it completely, I copy
the HeapBuffer into a DirectBuffer.
Such a strategy