码迷,mamicode.com
首页 > 编程语言 > 详细

jvisualvm 检测不到本地java程序

时间:2017-11-20 17:51:22      阅读:728      评论:0      收藏:0      [点我收藏+]

标签:检测   window   size   png   show   exit   src   图片   res   

cmd:

echo %TMP%

echo %USERNAME%

技术分享图片

官方描述及解答:

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为具体的用户名,区分大小写)。

username 即当前电脑的用户名 用 echo %USERNAME% 可以查看

技术分享图片

同时看下磁盘

 

技术分享图片

右键:以管理员的方式运行

技术分享图片

 

最后的结果:

技术分享图片

 

jvisualvm 检测不到本地java程序

标签:检测   window   size   png   show   exit   src   图片   res   

原文地址:http://www.cnblogs.com/gj1990/p/7866914.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!