JConsole can't find process

前端 未结 8 1512
北恋
北恋 2021-02-18 20:50

I tried to run JConsole to analyze the memory used by a running process, but JConsole doesn\'t show me processes even though I am absolutely sure that one is running (in additio

8条回答
  •  误落风尘
    2021-02-18 21:25

    at window prompt, run echo %TMP%, it will give you default temp dir. Go to that directory and find directory named hsperfdata_user where user is your login. This is directory to store your process id. Any new process you created such as java application will have a new file named by process id. Jconsole will pick up the process ids from this directory. If you cannot create a file in this directory, that means you need change permission to allow write. Once done that, start a new java application to see if new process id file is in the dir. Once confirmed, start jconsole

提交回复
热议问题