I wrote a simple code to test the performance my Server
while (true) {
ByteBuf firstMessage = Unpooled.buffer(8);
firstMessage.writeInt(1);
firstMessage.writeInt(1);
firstMessage.writeLong(1L);
f.channel().writeAndFlush(firstMessage);
}
After 30 seconds:
- All memory occupied
- Server stop receiving new messages
Sorry my English