When I run JConsole (JDK6)without parameters I cannot see list of local proceseses. JConsole with PID as a parameter works well. JConsole of JDK5 works ok. Does anybody help me?
Do you have an NTFS file system?
Can you see the processes using 'jps'?
You may also want to read:
http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole
although I fear this article has not much to offer for the specific problem you
describe.
-- daniel
JMX, SNMP, Java, etc...
http://blogs.sun.com/jmxetc
Re: Cannot see local process list in JConsole of JDK6
Feb 7, 2007 3:44 AM
(reply 3
of 11) (In reply to
#2 )
Hi Michael,
Do you mind cd'ing to the directory that TMP is defined as and see if there is a directory named hsperfdata_<user> where <user> is your login. That is the directory where the instrumentation buffers are mapped (as shared memory files). Each time a java process starts it should create a file in that directory. The file name is the pid and that is how jps and the other jvmstat tools get the process list. If you don't see any pid-like files in the directory then it might be a permission problem. Can you try to create a file in the directory? If you get an "access denied" error then that would explain the issue. If you don't get an error then it would be interesting to see the cacls.exe output on the directory - that's the Windows command line tool to print the ACL on the directory.
A workaround might be to create a new temporary directory and just update the TMP variable in your environment (Control Panel -> System -> Advanced -> Environment Variables).
Regards,
Luis-Miguel Alventosa
Java SE JMX/JConsole development team
Sun Microsystems, Inc.
Re: Cannot see local process list in JConsole of JDK6
May 25, 2007 5:55 AM
(reply 5
of 11) (In reply to
#3 )
Great help!
Somehow Vista had created the directory hsperfdata_Myname with only permissions for SYSTEM (!?). So I could not create files there and the directory was always empty. Even stranger, I could not change any security setting, although I am an administrator!
Fortunately, I could remove the directory and create a new one with the same name. And now it works!!
Re: Cannot see local process list in JConsole of JDK6
Mar 11, 2008 9:59 AM
(reply 6
of 11) (In reply to
#5 )
Hello Luis-Miguel Alventosa,
i run into an other showstopper.
I start with a service wrapper a tomcat instance on a win 2000 server.
I start this service via a terminal session. But now the problem is that jsp or visual vm don't see this process.
After some time i recognize that the service create the temp file in the temp dir from the settings, but jps use
a subdirectiry with nummer from the terminal session as temp dir.
this means temp=d:\temp
the service create the dir d:\temp\hsperfdata_Administrator
But with my terminal session I work with follow dir:
When I set the temp (in my termin session) to d:\temp I can see the processes but I don't have enough rights.
When I go to the server all works like expect. Now I install vnc:-)
I hope with this comment I can help other run into the same problem.
Re: Cannot see local process list in JConsole of JDK6
Aug 7, 2008 2:15 PM
(reply 7
of 11) (In reply to
#6 )
Hi, I have the same problem. I have recreated the tmp folder last time I used jconsole/jvisualvm, but now the issue is back.. Do I have to recreate c:\tmp after each restart?
Re: Cannot see local process list in JConsole of JDK6
Dec 1, 2008 2:30 AM
(reply 8
of 11) (In reply to
#7 )
Hi Windows lovers :)
I just got out of trouble hunting things with the hints providen in this topic.
My problem was a little bit different : I could see processes PID but could not connect to them (nor see the Main class)
The source of the problem ? : hsperfdata was named "hsperfdata_Username" where my login is "username".
After closing all VM I deleted the dir and re-launched java new dir was created with the good name "hsperfdata_username" and everything went OK.