You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Haviv <ha...@gmail.com> on 2007/03/19 12:23:21 UTC

Some Suggestions

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.

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.

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.

When the project will be finished I will be happy to update here with some
performance results and design issues we came across.

Thanks,
Haviv Rosh
-- 
View this message in context: http://www.nabble.com/Some-Suggestions-tf3426416.html#a9550198
Sent from the mina dev mailing list archive at Nabble.com.


Re: Some Suggestions

Posted by Trustin Lee <tr...@gmail.com>.
Hi Haviv,

On 3/19/07, Haviv <ha...@gmail.com> 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