Hi,
please mention the MINA version you are using when psoting a question...
Comments inline.
Simmons, Aaron a écrit :
I am implementing a mina server for a protocol that can sometimes send very large
messages (>250K). I've noticed that receiving these messages can be very slow
(>12s).
This performance is surprising, as I can transfer a 250K file to this same
server via scp or netcat in under 1.5s.
There is an issue with the way we handle the sendBufferSize, it's
initial size is small (8192 bytes), and should be set to the system
default. See DIRMINA-651 for more information.
You can change this value before opening the acceptor, by injecting the
desired value in the SessionConfig object. Something like :
final IoAcceptor acceptor = new NioSocketAcceptor();
acceptor.getSessionConfig().setSendBufferSize( <whatever fits you> );
...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com