Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local java processes are grayed when trying to connect via JMX

Tags:

java

jconsole

I'm running a number of java processes on a windows XP professional machine. When i attempt to connect to these processes via a local JConsole the processes are grayed out.

However i can run the same processes on another machine and connect via a local JConsole on that machine.

Both machines are running java 1.6 version for the processes and jconsole.

Any ideas why these processes are grayed out?

like image 551
richs Avatar asked May 11 '11 16:05

richs


2 Answers

I had the problem as described earlier, but was advised a simpler solution: just close all programs using Java ("IntelliJ IDEA", "SoapUI", etc. - to unlock the temporary folder) and then delete %TMP%\hsperfdata_<user.name> folder. Then, after opening any Java program, this folder will be recreated but this time with correct name (most likely %TMP%\hsperfdata_<User.Name>). And after that, local Java processes can be monitored through "JConsole" or "VisualVM" (now runs without starting error with a link to VisualVM: Troubleshooting Guide) again.

like image 147
evgeny9 Avatar answered Nov 08 '22 09:11

evgeny9


Change the name of the hsperfdata folder which for me was found at C:\Users\pmimgg0\AppData\Local\Temp\hsperfdata_pmimgg0 to match the User name found on task manager. Once I changed hsperfdata_pmimgg0 to hsperfdata_PMIMGG0 my local process was no longer greyed out on jconsole.

enter image description here

like image 41
Marcelino Galarza Avatar answered Nov 08 '22 09:11

Marcelino Galarza