Cannot see local process list in JConsole of JDK6

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?
[184 byte] By [Michael-Feldmana] at [2007-11-26 17:26:58]
# 1

Hi,

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

dfuchsa at 2007-7-8 23:54:55 > top of Java-index,Core,Monitoring & Management...
# 2
Yes I have NTFS. I cannot see any process by 'jps'.Thanks. mifeld53
Michael-Feldmana at 2007-7-8 23:54:55 > top of Java-index,Core,Monitoring & Management...
# 3

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.

lmalventa at 2007-7-8 23:54:55 > top of Java-index,Core,Monitoring & Management...
# 4
You are right. I recreated the directory and now it works ok. Thank you
Michael-Feldmana at 2007-7-8 23:54:55 > top of Java-index,Core,Monitoring & Management...
# 5

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!!

jeroen_borgersa at 2007-7-8 23:54:55 > top of Java-index,Core,Monitoring & Management...