Closed HongKing closed 4 years ago
补充:seata-server所在服务器为centos7的最小化安装,仅关闭了防火墙,其他未做任何调整
Known issues are being investigated. The recommended configuration has been implemented by default.
配置不能解决问题,我用类似 http://www.jiangxinlingdu.com/practice/2018/09/04/netty-outofheap.html 文中的方法跟踪了代码, 问题差不多,netty建立链接时,内存统计器,做了累加,断开链接时,不会减,再重新建立链接,继续累加,默认每次分配256M,所以配置多大都不行,异常只是时间问题,本人能力有限,跟踪了断开链接的代码,没能找到解决问题的入口,期待问题得到解决
We have provided a new server startup package, please help verify it. Can be downloaded from qq group (254657148), Dingding 2 group (http://seata.io/zh-cn/community/index.html).
@HongKing Can you verify if this pr fixes the problem you encountered? #2175
@slievrly 已解决,强!
Ⅰ. Issue Description
seata-server 在开发、测试阶段都一切正常,昨天准备部署生产试运行环境时出现的。eureka注册中心,mysql数据库,启动参数及脚本采用默认的(
-XX:MaxDirectMemorySize=1024m
)。 出现错误后,尝试修改-XX:MaxDirectMemorySize
为2G,3G,4G都会出问题,大概接入了5个左右的微服务就爆。能否给出一个服务器推荐配置?
Ⅱ. Describe what happened
错误日志:
Ⅲ. Describe what you expected to happen
网上都是给的netty内存溢出方案,我怀疑跟JVM内存管理有关,暂时还没有用jps详细跟踪。
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
服务器配置: 开发测试:4核8G(一切正常,10多个微服务连接也没有问题) 生产试运行:32核64G(5个微服务就报错) seata-server的配置参数都一致