首页 > 系统相关 >Ubuntu Terminal运行服务出现killed

Ubuntu Terminal运行服务出现killed

时间:2022-10-26 17:59:05浏览次数:71  
标签:kernel log process Ubuntu Terminal kill memory killed

原因分析:If a process is consuming too much memory then the kernel "Out of Memory" (OOM) killer will automatically kill the offending process. It sounds like this may have happened to your job. The kernel log should show OOM killer actions, so use the "dmesg" command to see what happened, e.g.

dmesg | less
#或者更精准地使用下面命令
dmesg | grep -i kill
#get datetime
dmesg -e | grep -i kill

或者

we can inspect the kernel logs /var/log/kern.log*

The default virtual memory setting for Linux is to over-commit memory. This means the kernel will allow one to allocate more memory than is available, allowing processes to memory map large regions because normally not all the pages in the allocation are used. However, sometimes a process will read/write to all the pages that are over committed and the kernel cannot provide enough physical memory + swap, so the OOM killer attempts to find the best candidate overcommitted process and kill it.

grep /var/log/kern.log* -ie kill

 

 

 

 

 

参考:

How to find out why process was killed on server

Why was Linux process killed?

 

标签:kernel,log,process,Ubuntu,Terminal,kill,memory,killed
From: https://www.cnblogs.com/carsonzhu/p/16829338.html

相关文章

  • ubuntu18.04.4 设置用root账户登录到系统
    https://blog.csdn.net/qq_35715148/article/details/107671704 ubuntu18.04.4设置用root账户登录到系统默认的Ubuntu系统在登陆界面上是不支持root用户直接登录的......
  • ubuntu下Mysql安装与root密码重置
    一、安装1.首先更新本地存储库索引,执行sudoaptupdate2.从APT存储库安装MySQL,执行sudoaptinstallMySQL-server,在安装过程中,可能会出现[Y/n]问题,输入Y继续3.安装完......
  • ubuntu 用户密码到期时间设置
    一、基础知识/etc/login.defs文件用于在创建用户时,对用户的一些基本属性做默认设置,例如指定用户UID和GID的范围,用户的过期时间,密码的最大长度,等等。需要注意的是,该......
  • VMWare安装Linux-ubuntu碰到的坑
    学习Android,不可避免要玩linux,现在使用虚拟机的比较多。具体怎么装VMWare+ubuntu就不讲了。这个基本已经没什么难点。倒是VMWare装好后,碰到了些小问题。这里只作提......
  • windows和虚拟机上的Ubuntu互传文件
    1.简介本文讲述的是通过ssh登录虚拟机上的Ubuntu系统,实现互传文件2.Ubuntu端2.1.安装sshsudoapt-getupdatesudoapt-getinstallopenssh-server2.2.启动sshs......
  • windows 设置子系统(WSL)Ubuntu的root密码并切换到root权限
    1.原因:安装时,设置root密码不是必须,而系统实现的是每次开启时随机设置root密码,导致无法切换到root权限进行操作2.解决:(1)设置root密码:sudopasswd(2)切换root权限测试:suro......
  • alpine、debian、ubuntu 最常用的换源命令
    文档说明:只是记录关键点alpinetest-f/etc/apk/repositories.save||cp/etc/apk/repositories/etc/apk/repositories.savesed-i's/dl-cdn.alpinelinux.org/mirr......
  • Ubuntu下添加新用户
    1、sudouseradd-r-m-s/bin/bashuserName-r:建立系统账号;-m:自动建立用户的登入目录;-s:指定用户的默认使用shell2、sudopasswduserName//根据提示输入新用户的密......
  • Ubuntu18.04安装AFL
    全是坑。。。AFL安装:在afl官网下载压缩包afl-latest.tgz并解压解压后在目录下输入:makesudomakeinstall我这里报错,是因为没有安装gcc,按照错误信息装上即可sud......
  • Ubuntu20.04.2配置静态固定IP地址
    Ubuntu20.04.2配置静态固定IP地址:https://blog.csdn.net/ARPOSPF/article/details/114293277Ubuntu从17.10开始,放弃在/etc/network/interfaces里面配置IP,改为在/etc/netp......