1、ping obs.cn-north-1.myhuaweicloud.com 得到 114.115.192.27
2、netstat -anp | grep 114.115.192.27
tcp 0 1335900 10.10.14.220:18000 114.115.192.27:443 ESTABLISHED 10972/java
表示java pId=10972进程正在与这个华为云的obs进行数据传输。
3、
ps -ef | grep 10972
root 10972 1 5 09:49 ? 00:03:18 java -Xverify:none -Xms1024m -Xmx2048m -cp .:/usr/local/tomcat8/webapps/baseService/WEB-INF/lib/* com.dsideal.baseService.Start
原来是这个程序从
UID --->程序被该 UID 所拥有--->root
PID --->就是这个程序的 ID --->10972
PPID --->则是其上级父程序的ID--->1
C --->CPU使用的资源百分比--->5
STIME --->进程启动的时间-->09:49
TTY --->登入者的终端机位置--->?
TIME --->进程共占用CPU的时间----> 00:03:18
CMD --->所下达的是什么指令---->java -Xverify:none -Xms1024m -Xmx2048m -cp .:/usr/local/tomcat8/webapps/baseService/WEB-INF/lib/* com.dsideal.baseService.Start
# 安装网卡
yum install iftop -y
# 查看流量
iftop