akka remote byte限制

来源:互联网 发布:安卓linux模拟器 编辑:程序博客网 时间:2024/05/16 00:45

akka remote默认有包大小的限制,所以如果超过大小就会丢包
这个可以在akka 的配置中进行修改

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      }    }  }

referece >http://blog.csdn.net/cjuexuan/article/details/52979725

http://udn.yyuap.com/doc/akka-doc-cn/2.3.6/scala/book/chapter6/02_logging.html
https://www.zybuluo.com/MiloXia/note/60638

0 0
原创粉丝点击