On Mon, Mar 24, 2014 at 8:30 AM, Patrik Nordwall <[email protected]>wrote:
> Hi Boris, > > Thanks for packing it in a reproducible sample. As Viktor points out the > Java serializer is one of the prime suspect for bottlenecks in remote > communication. Here you have found something that I think can be improved > in Akka remoting. > > I can see that major time is consumed in EndpointWriter stashing and > unstashing messages. That happens when the transport can't write. Perhaps > some internal buffer is full. Please create a > ticket<http://doc.akka.io/docs/akka/current/project/issue-tracking.html>and > we will look into if we can improve the efficiency of this buffering > mechanism. > The TCP write buffers should be probably increased in this case because the EndpointWriter waits for Netty to pump out data in the background. This setting is at "akka.remote.netty.tcp.send-buffer-size", by default it is 256000b, which is quite small. Try to increase it first and see what happens. Also the thread-pool settings for Netty in "akka.remote.netty.tcp.server-socket-worker-pool" and "akka.remote.netty.tcp.client-socket-worker-pool" allocate only two threads by default, increase it and see what happens. > > What you should do is to implement flow control in the application layer > to avoid producing faster than what can be consumed. > That is another important piece of course. -Endre > > and also, implement a good serializer for your messages. > > /Patrik > > > On Mon, Mar 24, 2014 at 1:58 AM, √iktor Ҡlang <[email protected]>wrote: > >> Hello Boris, >> >> Then you are likely to benchmark the slowness of Java Serialization. >> >> To maximize performance, one needs to choose an appropriate serializer. >> >> >> On Mon, Mar 24, 2014 at 1:51 AM, Boris Capitanu <[email protected]> wrote: >> >>> Hello Viktor, >>> >>> I am using whatever default serializer Akka comes with. I have not >>> configured anything special for that. >>> >>> -Boris >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: >>> http://doc.akka.io/docs/akka/current/additional/faq.html >>> >>>>>>>>>> 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/d/optout. >>> >> >> >> >> -- >> Cheers, >> √ >> >> * ——————— **Viktor Klang* >> *Chief Architect - **Typesafe <http://www.typesafe.com/>* >> >> Twitter: @viktorklang >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> >>>>>>>>>> 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/d/optout. >> > > > > -- > > Patrik Nordwall > Typesafe <http://typesafe.com/> - Reactive apps on the JVM > Twitter: @patriknw > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> 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/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> 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/d/optout.
