Glad to know that you found the issue !

What kind of perf do you have now ?

On Wed, Jan 29, 2014 at 9:18 AM, Javier López <[email protected]> wrote:
> Hello Emmanuel,
>
> Thanks for your reply. We've found a problem with our Log system. The log 
> system is affecting Mina performance.
>
> Anyway, thanks for your advices. I'm going to study to use concatenated 
> String to send several messages in a single sending.
>
> Thanks a lot
>
> Kind regards
>
>
> Javier
>
> -----Mensaje original-----
> De: Emmanuel Lécharny [mailto:[email protected]]
> Enviado el: lunes, 27 de enero de 2014 19:00
> Para: [email protected]
> Asunto: Re: Mina server bandwidth to send
>
> Le 1/27/14 12:28 PM, Javier López a écrit :
>> Hello.
>>
>>
>>
>> I've used mina for a time, and I realize that my app have problem to
>> send an amount of String messages (over 20.000) to an individual client in a 
>> loop.
> That's a huge number of messages to send. Can't you gather all those messages 
> in one single String and send one single message ?
>
>>
>>
>>
>> I see that IoHandler message sent event is triggered only for 10
>> messages per millisecond. I have debugged the app with different
>> clients, and the result is approximately the same.
>
> What is your network bandwith ? What is your message size ? There are many 
> reasons for reaching such a limitation, like for instance sending
> 10000 messages containing 100 chars per second on a 10 Mb network.
>
>>
>>
>>
>> For a simple test, I create a simple server to send 10000 String (150
>> chars)
> With a 10 Mb network, you will not be able to send those 10 000 messages in 
> one second.
>> messages to a client immediately(in a for loop, with the String
>> previously created). I was looking for the number of messages per
>> millisecond that mina is able to send (15 approximately, with peaks of
>> 60).  But, then, I've changed Mina.jar version from 2.0.7 to 2.0.4
>>
>>
>>
>> In this case, the number of messages per millisecond is similar, but
>> the time to write the 10000 messages in IoSession is 10 times less.
>> (Mina 2.0.7 best case 191msec, Mina 2.0.4 best case 14msec)
> We have fixed many concurrent issues in 2.0.7 which make it safe, when
> 2.0.4 was not. This actually impacts the performances.
>>
>>
>>
>> Are there any different configuration that I need to add to the last
>> mina version?
> no
>
>> Is it a normal behavior between this versions?
> yes
>>
>>
>>
>> Is normal this bandwidth in Mina Servers (around 1500B/millisecond ~
>> 1500000B/s) to clients?
>
> Agai, it depends on your network.
>
>> Could I increase it in anyway?
>
> If you have enough bandwidth (let's say 100 Mb/s or better), yes. Every time 
> you send a message, a lot of things happen internally which can be saved by 
> gathering the String in one single message (or a few, containing many 
> messages).
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>



-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to