Relative Content

Tag Archive for javasocketsmemory-leaksnetwork-programmingnetty

Memory leak in netty writeAndFlush

I’m currently developing a java package similar to .net signalr that utilizes netty. As I tried to benchmark it I realized that there’s a memory leak in my application. I narrowed down my search to the section where I write the result of the client request back to the TCP channel. Code below is where the memory leak is happening.