Fixing JConsole For Vista, or Vista for JConsole [Local Processes Are Not Listed]

Out-of-the-box it is not possible to connect to a local Java process from the JConsole using Windows Vista. The local process box just remains empty... The cause is Vista's security model. In default case every Java process creates a file in the folder: C:\Users\[LOGIN_NAME]\AppData\Local\Temp\hsperfdata_[LOGIN_NAME], in my case e.g.: C:\Users\adam\AppData\Local\Temp\hsperfdata_adam. The name of the file is the PID. For some strange reasons this directory is write-protected - it is not possible to create neither files nor folders in the hsperfdata_[LOGIN_NAME] directory. It is even not possible to change the write access, even not as an administrator (you can understand now, how secure Vista really is :-)). However if you delete this directory, and create a new one with the same name - then it works perfectly....

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License