http://blog.csdn.net/uusad/article/details/7979670
官方描述及解答:
Local Applications Cannot Be Monitored (Error Dialog On Startup)
Description: An error dialog saying that local applications cannot be monitored is shown immediately after VisualVM startup.
Resolution: This can happen on Windows systems if the username contains capitalized letters. In this case, username is
UserName
but the jvmstat directory created by JDK is
%TMP%\hsperfdata_username
. To workaround the problem, exit all Java applications, delete the
%TMP%\hsperfdata_username
directory and create new
%TMP%\hsperfdata_UserName
directory.
即:把%TMP%\hsperfdata_username檔案删除,重建立立%TMP%\hsperfdata_UserName檔案(username為具體的使用者名,區分大小寫)。
%TMP%:%TMP%為使用者環境變量,在cmd下echo %TMP%可以檢視具體路徑,或者直接在位址欄輸入%TMP%直接進入檔案目錄。
username:cmd下echo %USERNAME%即可檢視使用者名。