Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JConsole can't find process

Tags:

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 addition to that it should show JConsole in the process list as well but it doesn't).

Does anyone have an idea why it doesn't show any processes?

Cheers

like image 995
user1765902 Avatar asked Dec 06 '12 15:12

user1765902


People also ask

How does JConsole connect to local process?

To connect JConsole to your application, select the application you want to monitor, then click the Connect button. The list of local processes includes applications running in the following types of Java VM. Applications with the management agent enabled.


1 Answers

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

like image 150
james liao Avatar answered Oct 11 '22 14:10

james liao