概述
参数名 | 说明 | 默认值 |
---|---|---|
io.netty.allocator.pageSize | page的大小 | 8192 |
io.netty.allocator.maxOrder | 一个chunk的大小=pageSize << maxOrder | 11 |
io.netty.allocator.numHeapArenas | heap arena的个数 | min(cpu核数,maxMemory/chunkSize/6),一般来说会=cpu核数 |
io.netty.allocator.numDirectArenas | direct arena的个数 | min(cpu核数,directMemory/chunkSize/6),一般来说会=cpu核数 |
io.netty.allocator.tinyCacheSize | PoolThreadCache中tiny cache每个MemoryRegionCache中的Entry个数 | 512 |
io.netty.allocator.smallCacheSize | PoolThreadCache中small cache每个MemoryRegionCache中的Entry个数 | 256 |
io.netty.allocator.normalCacheSize | PoolThreadCache中normal cache每个MemoryRegionCache中的Entry个数 | 64 |
io.netty.allocator.maxCachedBufferCapacity | PoolThreadCache中normal cache数组长度 | 32 * 1024 |
io.netty.allocator.cacheTrimInterval | PoolThreadCache中的cache收缩阈值,每隔该值次数,会进行一次收缩 | 8192 |
io.netty.allocator.type | allocator类型,如果不使用内存池,则设置为unpooled,这里会影响内存如果一条传输对像大的话。 | pooled |
io.netty.noUnsafe | 是否关闭direct buffer | false |
io.netty.leakDetectionLevel | 内存泄露检测级别 | SIMPLE |
最后
以上就是无情鞋垫为你收集整理的netty5-内存池6-可调优参数的全部内容,希望文章能够帮你解决netty5-内存池6-可调优参数所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复