You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case BODY:
ByteBuf mqttBuf = in.readBytes(header.getBodyLength());
MqttAdapterMessage adapterMsg = new MqttAdapterMessage(header.version, header.clientId);
out.add(adapterMsg);
out.add(mqttBuf);
readBytes() will create a new ByteBuf, and we add it to the out list, it will be released by netty. however, when i start two thousand clients to pub and sub, mop has occasional memory leaks,and i do not know why.
Activity
hujie6 commentedon Aug 18, 2022
case BODY:
ByteBuf mqttBuf = in.readBytes(header.getBodyLength());
MqttAdapterMessage adapterMsg = new MqttAdapterMessage(header.version, header.clientId);
out.add(adapterMsg);
out.add(mqttBuf);
readBytes() will create a new ByteBuf, and we add it to the out list, it will be released by netty. however, when i start two thousand clients to pub and sub, mop has occasional memory leaks,and i do not know why.