33

Netty 防止内存泄漏措施-wx5c2c34594e7ac的博客

 5 years ago
source link: https://blog.51cto.com/14158311/2358889
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
背景1.1直播平台内存泄漏问题某直播平台,一些网红的直播间在业务高峰期,会有10W+的粉丝接入,如果瞬间发生大量客户端连接掉线、或者一些客户端网络比较慢,发现基于Netty构建的服务端内存会飙升,发生内存泄漏(OOM),导致直播卡顿、或者客户端接收不到服务端推送的消息,用户体验受到很大影响。1.2问题分析首先对GC数据进行分析,发现老年代已满,发生多次FullGC,耗时达3分多,系统已经无法正常运

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK