Reputation: 1334
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
Upvotes: 1
Views: 2859
Reputation: 23567
It is exposed via metrics (getters) on the PooledByteBufAllocator
and UnpooledByteBufAllocator
.
Upvotes: 2