码迷,mamicode.com
首页 > 其他好文 > 详细

Out of memory: Kill process 内存不足

时间:2018-10-13 22:50:44      阅读:571      评论:0      收藏:0      [点我收藏+]

标签:line   current   pos   one   cep   fail   div   是什么   epo   

 

服务直接被 killed,感觉特别奇怪。代码肯定是没有问题的,但为什么放到服务器上就出错了呢。 

部署时报错如下:

Shell代码  技术分享图片
  1. Failed to add the deployment content to the repository: java.util.concurrent.CancellationException: Operation was cancelled  


wildfly 报错如下:

Shell代码  技术分享图片
  1. ./standalone.sh: line 307: 12526 Killed   


一时还真看不出是什么毛病。 

于是使用 dmesg 查找原因,终于找到了原因: 

Shell代码  技术分享图片
  1. # dmesg | tail  
  2. [1147898.706546] Out of memory: Kill process 12526 (java) score 399 or sacrifice child  
  3. [1147898.710393] Killed process 12526 (java) total-vm:2559448kB, anon-rss:403304kB, file-rss:780kB, shmem-rss:0kB  
  4. [1147898.738479] oom_reaper: reaped process 12526 (java), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB  


原来是因为内存不足导致了。我使用的服务器内存只有 1G,上面跑了很多的服务,因此可以内存并不大,所以才出了问题。 

Out of memory: Kill process 内存不足

标签:line   current   pos   one   cep   fail   div   是什么   epo   

原文地址:https://www.cnblogs.com/timxgb/p/9784361.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!