[xuxueli/xxl-job]客户端RPC服务器新增netty通信方式,兼容tomcat6.x版本容器

2024-05-15 765 views
4

客户端RPC服务器新增netty通信方式,兼容tomcat6.x版本容器

回答

8
你好, 出现 failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 504889344) 存在ByteBuf 导致的内存泄漏,没有release
8
你好, 出现 failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 504889344) 存在ByteBuf 导致的内存泄漏,没有release

有没有详细的堆栈或者可以复现问题的测试代码?

3
你好, 出现 failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 504889344) 存在ByteBuf 导致的内存泄漏,没有release

有没有详细的堆栈或者可以复现问题的测试代码? 复现需要时间,我跑了一天多出现这个问题,但是你可以通过 netty 自带的检测 看到该问题,exceptionCaught 打印出cause.getMessage() 可以看到有关键字 ByteBuf release 。 具体问题在,NettyServerHandler.doInvoke 没有对ByteBuf 进行释放,只要释放了就不会出现这个问题。

0
你好, 出现 failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 504889344) 存在ByteBuf 导致的内存泄漏,没有release

有没有详细的堆栈或者可以复现问题的测试代码? 复现需要时间,我跑了一天多出现这个问题,但是你可以通过 netty 自带的检测 看到该问题,exceptionCaught 打印出cause.getMessage() 可以看到有关键字 ByteBuf release 。 具体问题在,NettyServerHandler.doInvoke 没有对ByteBuf 进行释放,只要释放了就不会出现这个问题。

已经复现这个问题,加上bytebuf.release()可以解决。

9

通讯模块已单独拆分项目 ”xxl-rpc“,已支持Netty通讯方案。目前迭代分支默认通讯选型已经从Jetty切换为Netty,可进行参考。