我使用apache netty模块接收udp数据包 .
在负载下,它似乎不接受所有发送的udp数据包 . 我通过运行虚拟udp服务器(非驼峰,只计算接收到的数据包的数量)测试它,并从localhost每秒发送1000个数据包,这个虚拟udp服务器接受并计算全部 . 但是从localhost每秒发送1000个数据包到我的camel udp端口,我可以看到一些(1-5%)从未出现过 .
我应该使用什么camel netty配置来解决这个问题?
顺便说一句,我正在紧急循环中发送udp数据包
更新:我现在提供以下默认的threadProfile .
<threadPoolProfile id="myDefaultProfile"
defaultProfile="true"
poolSize="20"
keepAliveTime="25"
maxPoolSize="50"
maxQueueSize="100000"/>
仍然会丢包 .