ResourceLeakDetector.setLevel(PARANOID) is not producing resource leak logs

前端 未结 1 1842
悲&欢浪女
悲&欢浪女 2021-01-26 04:15

I have a netty 4 http server Implemented.

public void start() {
    System.out.println(\"In Start method\");
    try {
        ServerBootstrap b = new ServerBoot         


        
相关标签:
1条回答
  • 2021-01-26 04:46

    I don't see any leaks in your code so it makes sense that there is no leak reported. Just replace SimpleChannelInboundHandler with ChannelInboundHandlerAdaptor or call request.retain() in your channelRead0(...) method and you will see a report.

    0 讨论(0)
提交回复
热议问题