vivo Internet Technology
Sep 22, 2021 · Backend Development
Investigation and Resolution of Netty ChannelOutboundBuffer Memory Leak in a Mobile Push System
In a high‑throughput mobile push service built on Netty, an off‑heap memory leak was traced to unchecked ChannelOutboundBuffer growth when half‑closed connections remained active but unwritable; fixing it by disabling autoRead on unwritable channels, configuring write‑buffer watermarks, and adding explicit isWritable() checks eliminated the crash and stabilized the system.
ChannelOutboundBufferJavaNetty
0 likes · 10 min read