“max allowed size 128000 bytes, actual size of encoded class scala” error in akka remoting

后端 未结 1 588
迷失自我
迷失自我 2021-02-20 04:02

I want to use Akka Remoting to exchange message over network between actors, but for large String message i got the following error:

akka.remote.OversizedPayload         


        
相关标签:
1条回答
  • 2021-02-20 04:26

    I add the following configuration and now everything is ok:

    akka {
    
      actor {
        provider = "akka.remote.RemoteActorRefProvider"
      }
    
      remote {
        maximum-payload-bytes = 30000000 bytes
        netty.tcp {
          hostname = "127.0.0.1"
          port = 2552
          message-frame-size =  30000000b
          send-buffer-size =  30000000b
          receive-buffer-size =  30000000b
          maximum-frame-size = 30000000b
        }
      }
    }
    
    0 讨论(0)
提交回复
热议问题