Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jps process information unavailable - jconsole and jvisualvm not working

Tags:

java

jconsole

After a windows update, my jps, jconsole et jvisualvm are not working anymore.

Jps gives me the process ids, but it tells me process information unavailable

And I'm unable to connect to those processes with jvisualvm as I used to.

I'm running the 1.6.0_22 jre.

I already had the problem in the past, tries this trick, and it worked. But this time, bad luck, it does not help.

Edit : I found a solution : in my temp folder, I did destroy the hsperfdata_<username> folder. Apparently there was an issue with the case of my username. The folder was called hsperfdata_myname. After having been destroyed and re-created by a call to jps, it was called hasperfdata_MYNAME.

Very strange.

like image 969
Laurent K Avatar asked Mar 11 '11 10:03

Laurent K


2 Answers

In my temp folder, I did destroy the hsperfdata_ folder. Apparently there was an issue with the case of my username. The folder was called hsperfdata_myname. After having been destroyed and re-created by a call to jps, it was called hasperfdata_MYNAME.

Very strange.

like image 126
Laurent K Avatar answered Oct 09 '22 00:10

Laurent K


On unix, make sure you are running as the user that started it.

like image 40
Qiang Li Avatar answered Oct 09 '22 00:10

Qiang Li