ps命令 ps x 加上 "x" 选项(注意没有开头的 "-" 字符),告诉 ps 命令,展示所有进程,不管它们由什么 终端(如果有的话)控制. 在 TTY 一栏中出现的 "?" ,表示没有控制终端.使用这个 "x" 选项,可以 看到我们所拥有的每个进程的信息. 进程状态 状态 含义 R 运行中.这意味着,进程正在运行或准备运行. S 正在睡眠.进程没有运行,而是,正在等待一个事件, 比如说,一个按键或者网络分组. D 不可中…
参考阅读:http://billie66.github.io/TLCL/book/chap04.html 绝对路径 An absolute pathname begins with the root directory and follows the tree branch by branch until the path to the desired directory or file is completed. For example, there is a directory on you…
背景,服务器上的一个JAVA服务进程突然挂掉,查看产生了崩溃日志,如下: # Set larger code cache with -XX:ReservedCodeCacheSize= # This output file may be truncated or incomplete. # # Out of Memory Error (os_linux.cpp:2673), pid=28610, tid=139813184919296 日志分析原因很简单,服务器的内存不够用,导致进程崩溃 JA…
目前用它监控某些服务,失败自动重启,同时监控特定的日志文件,如果有变化,就发邮件报警 安装不细写了,网上好多 我先用cat /proc/version看了下我的系统是el6的,于是wget http://pkgs.repoforge.org/monit/monit-5.5-1.el6.rf.x86_64.rpm 启动什么的就不管了,直接上配置文件: set daemon set logfile /var/monit/monit.log set idfile /var/monit/id set s…