Adam Bien's Weblog
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....
Posted at 03:14PM Jan 13, 2008 by Adam Bien in Java / JEE / Architecture | Comments[0] | Views/Hits: 720
*NEW* Workshop: "Real World Java EE 6/7 Bootstrap" and book: Real World Java EE Night Hacks--Dissecting the Business Tier Tweet Follow @AdamBien


