netty监控思考

编程

Netty 值得统计的信息
外在信息
连接统计信息:channelActive / channelInactive
收数据统计:channelRead
发数据统计:write(写到缓存里),用 ctx.write(msg).addListener() 更准确
异常统计:exceptionCaught / ChannelFuture
内在信息
线程数:根据不同实现计算,比如:nioEventLoopGroup.executorCount();
待处理任务:executor.pendingTask();
积累的数据:channelOutBoundBuffer.totalPendingSize,这是 Channel 级别的;
可写状态切换:channelWritabilityChanged;
触发事件统计:userEventTriggered,比如 IdleStateEvent;
ByteBuf 分配细节:Pooled/UnpooledByteAllocator.DEFAULT.metric();

————————————————

https://blog.csdn.net/weixin_33669968/java/article/details/104552393

https://community.jboss.org/wiki/Netty4AndJMXIntegration

https://grafana.com/grafana/dashboards/4991/reviews

https://mvnrepository.com/artifact/io.netty/netty-metrics-yammer/4.0.0.Alpha6

以上是 netty监控思考 的全部内容, 来源链接: utcz.com/z/515744.html

回到顶部