Hi Haviv, On 3/19/07, Haviv <[EMAIL PROTECTED]> wrote:
Hi all, I am using mina 1.0.1 to build a multi player gaming server. First I have to specify that Mina is great , and a great work has been done so far. During our usage we have tackled few issues that in my opinion should be taken care: 1.In case clients are sending messages to the server(on load) and not consuming(reading) the messages written from the server - the server crashes on OutOfMemoryError , this issue can easily fixed by setting the setWriteTimeout, I think that there should be a default value - to keep the server from crashing.
What number would be appropriate as a default value?
2. Throttling - I think there should be out of the box Throttling for both read&writes( I know there is ony ReadThrottleFilterBuilder) - this is highly important to avoid the OutOfMemoryError -> the write Throttling is also important because if clients cant consume the messages in the same rate of the server- you can easily get OutOfMemoryError.
Actually, there's a patch though we didn't apply it yet. http://issues.apache.org/jira/browse/DIRMINA-302
3. Throttling - It is also a good idea to add to the Throttling filters global memory(across all active sessions) thresholds and not only per session threshold.
We discussed about adding global traffic mask to implement this. Any contribution is always welcome! :)
When the project will be finished I will be happy to update here with some performance results and design issues we came across.
Sounds great! Please let us know whenever it doesn't perform as you expected or it has a problem. :) HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
