« Is Java The New C++,... | Main | Upcoming Java EE 5 /... »
 20080113 Sunday January 13, 2008

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....
Gesendet von admin [Java / JEE / Architecture] ( January 13, 2008 03:14 PM ) Permalink | Kommentare [0]
[my website] [This entry is based on / extends my books: Enterprise Architekturen, Leitfaden fuer effiziente Software-Entwicklung and: Java EE 5 Architekturen, Patterns und Idiome]

Kommentare:

Senden Sie einen Kommentar:

Name:
E-Mail:
URL:

Ihr Kommentar:

HTML Syntax: Ausgeschaltet



License
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.0 License.