[英]Netty 4.1.x direct memory monitoring
Question is a follow up question regarding this forum exchange: Direct buffer allocation . 问题是关于该论坛交换的后续问题: 直接缓冲区分配 。
Problem is that at some point there was a change introduced to how default implementation is allocating buffers in direct memory, which is not using JMX com.codahale.metrics.jvm.BufferPoolMetricSet
any more. 问题在于,在某种程度上引入了默认实现方式如何在直接内存中分配缓冲区的更改,该更改不再使用JMX com.codahale.metrics.jvm.BufferPoolMetricSet
。
Is there a way to monitor direct memory usage without setting: 有没有一种方法可以直接监控内存使用情况而无需进行设置:
-Dio.netty.maxDirectMemory=0
它通过PooledByteBufAllocator
和UnpooledByteBufAllocator
上的指标(获取器) UnpooledByteBufAllocator
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.