LoginSignup
0
0

More than 5 years have passed since last update.

jstatを使おうとするときにpidが見つからない時にはRMで救う

Last updated at Posted at 2017-09-14

何ヶ月前に他の人はJVMを変更した。最近jstatを使いたかったが、ずっとpidが見つからない(XXX=pid not found)というばかり。
知識として、jvmはユーザごと/tmp/hsperfdata_{USER}というフォルダーに、プロセスのpidを名前とするファイルを作りし、jstatなどはこれを読み書きながら稼働する。
何度試したが最後に解決した。

rm -rf /tmp/hsperfdata_*
chmod 777 /tmp

プログラムを再起動、それで正常に動けるようになる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0