Arlen Carter
Arlen Carter
-Dio.netty.noPreferDirect=true 直接改成这个了,影响会有一点,但内存泄露的问题应该能解决了
修改代码的话,可以直接修改TcpSocketReceiver `bootstrap.childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);` 真的是太难的
不需要,只需要不要提前获取时间就可以了,就是将它们两个换个位置 ` // get last modify time long lastModify = ClassHelper.getLastModifyTime(cls); ` ` String uniClsName = cls.getName(); Codec codec = CACHED.get(uniClsName); if (codec != null) { return codec; } `