简体   繁体   中英

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.

Is there a way to monitor direct memory usage without setting:

-Dio.netty.maxDirectMemory=0

它通过PooledByteBufAllocatorUnpooledByteBufAllocator上的指标(获取器) UnpooledByteBufAllocator

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM