streamnative / bookkeeper-achieved

Apache Bookkeeper
https://bookkeeper.apache.org
Apache License 2.0
3 stars 2 forks source link

ISSUE-2637: The metrics about jvm_memory_direct_bytes_used #347

Open sijie opened 3 years ago

sijie commented 3 years ago

Original Issue: apache/bookkeeper#2637


The mertics about jvm_memory_direct_bytes_used is acquired by netty's PlatformDependent#DIRECT_MEMORY_COUNTER. Which can only acquired the memory used by netty. How about rename jvm_memory_direct_bytes_used to netty_memory_direct_bytes_used,

And use java.nio.Bits#RESERVED_MEMORY for jvm direct memory metrics.