Prakash, I think a possible solution is two-fold: start using a more efficient means of serialization (which reduces payload sizes), and don't rely on exception throwing to track lost messages (Akka is at-most-once delivery).
On Tue, Aug 16, 2016 at 1:40 PM, prakash chinnaswamy < prakash.chinnaswamy...@gmail.com> wrote: > Viktor > > Could on get in what contest you are asking. Just add more information we > use Scala and it is a rest application where this application will talk to > a play server (having a remote actor). When trying to send a large record > we get this error. We would like to handle this error and send a warning > message to the client. > > On Tue, Aug 16, 2016 at 5:00 PM, Viktor Klang <viktor.kl...@gmail.com> > wrote: > >> Hi Prakash, >> >> Do you use Java Serialization? >> >> On Tue, Aug 16, 2016 at 12:21 PM, prakash chinnaswamy < >> prakash.chinnaswamy...@gmail.com> wrote: >> >>> We have a distributed application on akka cluster. Actor “A” sends >>> message of large size to a remote actor. And we get the following Warning. >>> >>> >>> 2016-08-10 23:08:29,737 [EndpointWriter] ERROR - Transient association >>> error (association remains live) akka.remote.OversizedPayloadException: >>> Discarding oversized payload sent to Actor[akka.tcp://abcd@127.0.0. >>> 1:51665/temp/$b]: max allowed size 128000 bytes, actual size of encoded >>> class common.data.model.configuration.UserList was 571444 bytes. >>> >>> >>> We are aware that we can increase the value in the configuration( >>> http://doc.akka.io/docs/akka/2.2.3/scala/remot >>> ing.html#Remote_Configuration). >>> >>> >>> But we wanted to handel this OversizedPayloadException and send the >>> message to the client. >>> >>> >>> Regards, >>> >>> Prakash >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c >>> urrent/additional/faq.html >>> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. >>> To post to this group, send email to akka-user@googlegroups.com. >>> Visit this group at https://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Cheers, >> √ >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c >> urrent/additional/faq.html >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "Akka User List" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/akka-user/oj4YsZpGYGs/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> akka-user+unsubscr...@googlegroups.com. >> To post to this group, send email to akka-user@googlegroups.com. >> Visit this group at https://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 akka-user+unsubscr...@googlegroups.com. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Cheers, √ -- >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.