Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1148663
  • 博文数量: 103
  • 博客积分: 1897
  • 博客等级: 上尉
  • 技术积分: 1717
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-19 21:02
文章分类

全部博文(103)

文章存档

2013年(19)

2012年(84)

分类: Java

2012-09-15 15:37:21

下午在使用VisualVm查看java程序的内存使用情况的时候,总是出现“Local Applications Cannot Be Detected (Error Dialog On Startup)”的错误,后来就着提示,去官方哪里看了一下,发现了这个:

Description: An error dialog saying that local applications cannot be detected is shown immediately after VisualVM startup.

Resolution:  This can happen on Windows systems, it's caused by misconfigured jvmstat technology used to detect the running applications. There are two possible causes:

  • Insufficient permissions for %TMP%\hsperfdata_username folder - make sure you're able to create a file in the directory and eventually update the permissions for full folder access. Alternatively you can just re-create the folder which should automatically set the correct access rights. See see this for more details.
  • Having %TMP%\hsperfdata_username folder on a FAT disk - by default jvmstat doesn't work on FAT disks due to security restrictions. You can bypass the security check by setting the -XX:+PerfBypassFileSystemCheck flag for both VisualVM and the monitored application. See the for more details.

突然间恍然大悟,原来我的C盘式fat32的,它不支持,后来用window的convert命令把盘给转换一下,就行了。。。


阅读(2283) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~