alobodzk
alobodzk

Reputation: 1334

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

Upvotes: 1

Views: 2859

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

It is exposed via metrics (getters) on the PooledByteBufAllocator and UnpooledByteBufAllocator.

Upvotes: 2

Related Questions