现在的位置: 首页 > 综合 > 正文

VisualVM 检测不到本地JAVA程序

2017年10月26日 ⁄ 综合 ⁄ 共 699字 ⁄ 字号 评论关闭

官方描述及解答:

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%即可查看用户名。

【上篇】
【下篇】

抱歉!评论已关闭.