这个问题是关于这个论坛交流的后续问题:Direct buffer allocation。
问题是,在某种程度上,默认实现在直接内存中分配缓冲区的方式发生了变化,不再使用JMX com.codahale.metrics.jvm.BufferPoolMetricSet。
有没有一种无需设置即可监控直接内存使用的方法:
-Dio.netty.maxDirectMemory=0
发布于 2017-10-24 13:20:35
它是通过PooledByteBufAllocator和UnpooledByteBufAllocator上的指标(getters)公开的。
https://stackoverflow.com/questions/46890360
复制相似问题