Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.通过日志打印发现buffer重复申请,使用mat工具分析内存 发现有多个线程持有了同一个buffer
可能进行了重复回收导致buffer重复申请
2.修改连接是否为closed状态 必须要等到释放所持有的buffer才可以设置问题是isClosed的标志位
3.cleanup里面清理了buffer 然后定时任务frontendCheck里面也是更具isClosed清理了buffer导致重复回收