如何为netty选择合适的chunkSize和numdirectarena



有没有关于这个参数的文档或文章?如何选择numdirectarenamaxOrder相对于maxDirectMemory或者加载我的应用程序的其他需求?

-Dio.netty.maxDirectMemory=1000
-Dio.netty.allocator.numHeapArenas=0 
-Dio.netty.allocator.numDirectArenas=2 
-Dio.netty.allocator.maxOrder=10 

通常使用默认值就可以了。对于您来说,什么是合适的限制在很大程度上取决于您在系统上拥有的资源以及应用程序的分配模式。

最新更新