James Im a écrit :
Ok, so you seems to have missed a 'go fast' parameter.
In my opinion, it is not your fault. It is mina that is not being user
friendly. MINA should take care of these details itself.
This optimization wisdom should be capture into mina so that everyone is
not forced to be an expert to have a fast server.
For me, mina should be fast by default (if you want to overwrite the
config you can). Right now mina is slow by default and only if you tweak
some settings it becomes faster. This is not right.
I won't be so harsh with Mina, because I have to admit that I never
spent a lot of time reading doco and exemple (I'm simply a user), but
basically, this number of processor should be defaulted in the
constructor to Runtime.getRuntime().availableProcessors(), and up to the
user to set it to 1.
However, Mina is really a great piece of software !
Emmanuel
PS: if you find that MINA should behave differently, then the best
solution is to fill a JIRA issue so that it get in the roadmap for the
next release. This is the best way to improve the project. Remember that
this kind of project does exist because of people like Trustin dedicate
their own time and energy to it, but without any feedback, they may also
miss some improvements :). And their is also some room for patches and
improvement proposals if you feel it's needed !