下午在使用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命令把盘给转换一下,就行了。。。
阅读(2256) | 评论(0) | 转发(0) |