当前位置:网站首页>Detailed explanation of JPS

Detailed explanation of JPS

2022-07-23 17:55:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm your friend, Quan Jun .

First jps Directory in java in , As shown in the figure below .jps It is mainly used to view java process , In the view hdfs Can replace ps -ef | grep hdfs command .

In the discussion jps when , We can switch users to root Under the user , then jps Check the process , There will be the following problems , As shown in the figure below , Display process information is not available (process information unavailale)

In the enterprise , If the process is not available , First use ps -ef | grep pid Check to see if the process exists .

  • If the process exists , As shown in the figure below , It shows yes hadoop This user's process , So we can try to switch users to view ( Do not kill 了 , Otherwise, colleagues will rebel o(╥﹏╥)o).
  • If the process does not exist , And there is residual information , We can switch to /tmp Folder to view .
cd /tmp

PS: Our main concern is hsperfdata Prefixed folder , Get into hsperfdata_hadoop The folder can be seen in the following figure .

so , Want to completely delete the residual process , Just delete the process file .

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/126657.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207231512460707.html