Hi,

It is not possible to simulate OversizedPayloadException in test using
local actor system. You have to start two remote/cluster actor systems and
send over the configured port.

The send-buffer-size and receive-buffer-size attempt to inform the OS how
much buffering it should do on our behalf. If you set very large numbers
here you will probably see adverse effects (increased latency, heartbeats
being missed because our internal prioritization is less effective, etc.),
and if you set very small numbers you will experience lower overall
throughput. Normally this does not require tuning. They do not have to
correlate with maximum-frame-size.

Regards,
Patrik

On Sun, Jan 4, 2015 at 12:56 AM, Maksym Besida <maks.bes...@gmail.com>
wrote:

> A few days ago I stumbled across *akka.remote.OversizedPayloadException*.
> Successfully I found the solution in this user list: the problem was in
> *akka.remote.netty.tcp.maximum-frame-size* config parameter which is set
> to128000 bytes by default. My question is how can I reproduce this
> exception locally, because I tried to send messages with size exceeding
> this value in the tests but didn't get this exception, only when messages
> are passing between application instances(seperate JVMs).
> Also another question is about *akka.remote.netty.tcp.**receive-buffer-size
> *and *akka.remote.netty.tcp.**send-buffer-size. *Do they have to
> correlate with *maximum-frame-size *as in default config? What are the
> consequences if they don't correlate?
>
> Thanks in advance!
>
> --
> >>>>>>>>>> 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 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to