Try to use this library:
https://github.com/romix/akka-kryo-serialization

On Thursday, February 13, 2014 11:45:17 AM UTC+1, chen ke wrote:
>
> when i use 2.2.3 the problem is also 
> my requirement the message array must dynamic build.
> when i use the protobuf serializer the problem also...
>
> 在 2014年2月13日星期四UTC+8下午6时24分01秒,√写道:
>
>> First I'd upgrade to the latest stable release: 2.2.3
>> Then I'd send a preallocated byte-array
>> Then I'd investigate switching to Kryo or some other high-performance 
>> serializer
>>
>>
>> On Thu, Feb 13, 2014 at 11:19 AM, chen ke <[email protected]> wrote:
>>
>>> the version is 2.1.2,how to improve it?
>>>
>>> 在 2014年2月13日星期四UTC+8下午6时17分06秒,√写道:
>>>
>>>>
>>>>
>>>>
>>>> On Thu, Feb 13, 2014 at 4:01 AM, chen ke <[email protected]> wrote:
>>>>
>>>>> so pity,when i use remotActor.tell("str".getByte()); the throughput 
>>>>> is slow than use remotActor.tell("str"); why???
>>>>>
>>>>
>>>> Because you're creating a new array for every message.
>>>>
>>>> What version of Akka are you running?
>>>>  
>>>>
>>>>>
>>>>> 在 2014年2月13日星期四UTC+8上午10时38分05秒,√写道:
>>>>>>
>>>>>> Java Serializer is extremely slow compared to virtually anything else.
>>>>>>
>>>>>> What if you switch from sending a String to sending an Array[Byte]?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Feb 13, 2014 at 1:30 AM, chen ke <[email protected]> wrote:
>>>>>>
>>>>>>> the message is string type only 100byte, so i use java serializer .
>>>>>>> the client and server both in the same host.when call the actor in 
>>>>>>> local mode ,the tps is about 2m,but when call the actor in remote mode 
>>>>>>> the 
>>>>>>> tps only 20k... why?
>>>>>>> when a use the jvisualvm look the thread status ,the dispatcher 
>>>>>>> thread status most in wait ...but when call the actor in local the 
>>>>>>> dispatcher thread status most in  run .why???
>>>>>>> i'm sorry my company can't upload the code,only use the words 
>>>>>>> to describe it.
>>>>>>>
>>>>>>> 在 2014年2月12日星期三UTC+8下午7时32分39秒,√写道:
>>>>>>>>
>>>>>>>> Doesn't say anything.
>>>>>>>> What serializer are you using, how big are the messages, what 
>>>>>>>> latency and bandwidth does the connection have, how saturated is it, 
>>>>>>>> how 
>>>>>>>> much packet drop does it have etc etc etc.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> V
>>>>>>>> On Feb 12, 2014 10:07 AM, "chen ke" <[email protected]> wrote:
>>>>>>>>
>>>>>>>>>  hi,all:
>>>>>>>>>      my project use one client to send message to a server with 
>>>>>>>>> remoting actor ,the benchmark result is about 20K msg/sec .what abot 
>>>>>>>>> this 
>>>>>>>>> result???
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>>>>>>>> p/akka-user
>>>>>>>>> --- 
>>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>>> Groups "Akka User List" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>>> send an email to [email protected].
>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>>
>>>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>>>
>>>>>>>>  -- 
>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>>>>>> p/akka-user
>>>>>>> --- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "Akka User List" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to [email protected].
>>>>>>> To post to this group, send email to [email protected].
>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Cheers,
>>>>>> √
>>>>>>
>>>>>> * ——————— **Viktor Klang*
>>>>>> *Chief Architect - **Typesafe <http://www.typesafe.com/>*
>>>>>>
>>>>>>  Twitter: @viktorklang
>>>>>>  
>>>>>  -- 
>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/
>>>>> group/akka-user
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Akka User List" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Cheers,
>>>> √
>>>>
>>>> * ——————— **Viktor Klang*
>>>> *Chief Architect - **Typesafe <http://www.typesafe.com/>*
>>>>
>>>>  Twitter: @viktorklang
>>>>  
>>>  -- 
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>> >>>>>>>>>> Search the archives: 
>>> https://groups.google.com/group/akka-user
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> -- 
>> Cheers,
>> √
>>
>> * ——————— **Viktor Klang*
>> *Chief Architect - **Typesafe <http://www.typesafe.com/>*
>>
>>  Twitter: @viktorklang
>>  
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to