add ByteBuf monitor
#13890
-
Under the default configuration, the direct memory used by netty cannot be observed through MBeans. Hope to add ByteBuf's monitor |
Beta Was this translation helpful? Give feedback.
Answered by
franz1981
Mar 7, 2024
Replies: 1 comment
-
If you set |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
342963711
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you set
-Dio.netty.maxDirectMemory=0
or disableUnsafe
,ByteBuf
s should useCleaner
s and should be visible as any other direct memory user. Without, you need to use the allocator statistics or, if you're using an higher-level framework using Netty, it is often possible to read such metrics with the right micrometer plugin.