Use jps to view the JAVA process number

  Colleagues said the process was stuck and could not be closed. Is n’t this simple?

  • With killall, it fails.
  • Use ps to view the process number, and then kill, fail.

  Ok? Why doesn't it work? We are an authentic brick house, how can we make such a joke? A colleague came to point out and use jps to view the process number. I tried, the process number is one number smaller than the current process (?). Then kill the process number, success.

Published 2678 original articles · praised 364 · 2.16 million views

Guess you like

Origin blog.csdn.net/quantum7/article/details/105532823