dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

生产环境dubbo服务出现问题,导致调用不了,查看后台日志如下,不知道是哪里报内存溢出了

Open wenyuancheng opened this issue 9 years ago • 6 comments

2017-11-17 10:42:45,761 [DubboSaveRegistryCache-thread-1] WARN alibaba.dubbo.common.logger.slf4j.Slf4jLogger (Slf4jLogger.java:62) - [DUBBO] Failed to save registry store file, cause: Java heap space, dubbo version: 2.8.4, current host: 192.168.18.86 java.lang.OutOfMemoryError: Java heap space 2017-11-17 10:43:29,283 [DubboSaveRegistryCache-thread-1] WARN alibaba.dubbo.common.logger.slf4j.Slf4jLogger (Slf4jLogger.java:62) - [DUBBO] Failed to save registry store file, cause: Java heap space, dubbo version: 2.8.4, current host: 192.168.18.86 java.lang.OutOfMemoryError: Java heap space 2017-11-17 10:44:10,942 [DubboSaveRegistryCache-thread-1] WARN alibaba.dubbo.common.logger.slf4j.Slf4jLogger (Slf4jLogger.java:62) - [DUBBO] Failed to save registry store file, cause: Java heap space, dubbo version: 2.8.4, current host: 192.168.18.86 java.lang.OutOfMemoryError: Java heap space 2017-11-17 10:44:54,632 [DubboSaveRegistryCache-thread-1] WARN alibaba.dubbo.common.logger.slf4j.Slf4jLogger (Slf4jLogger.java:62) - [DUBBO] Failed to save registry store file, cause: Java heap space, dubbo version: 2.8.4, current host: 192.168.18.86 java.lang.OutOfMemoryError: Java heap space

wenyuancheng avatar Nov 17 '17 02:11 wenyuancheng

设置xmx和xms啊

yxstar avatar Nov 17 '17 06:11 yxstar

看log信息应该是堆内存不足,试试调整一下Xms 和 Xmx,看看能不能改善,也可能是注册的服务太多了,或者参考下这个issue:https://github.com/alibaba/dubbo/issues/81

hcxin avatar Nov 18 '17 06:11 hcxin

我今天也遇到了这个问题 image 不知道是不是代码里有什么BUG。

streamfly avatar Dec 06 '18 08:12 streamfly

DubboSaveRegistryCache-thread-1 里面的data 有1个G还多,是一个对象哦。应该是某种情况下导致对象数据累加了。但没查出来

streamfly avatar Dec 06 '18 08:12 streamfly

image

streamfly avatar Dec 06 '18 08:12 streamfly

顺便说一下,上面URL也就占用了3000多个字符,后面全部是空格 image 怀疑是某些原因导致java.util.Properties里面 image 构建了一个最大INT值的BUFFER。

streamfly avatar Dec 06 '18 09:12 streamfly