我目前正在尝试搜索java web / soap应用程序中的/某些内存泄漏,因此我想在IntelliJ中使用带有插件的VisualVM。
我用作环境: Windows 10 1607 14393.2248 Java 1.8.0_121 VisualVM 1.4.1
安装后首先工作一次。
但现在它停止了工作 - 弹出错误消息:
Error: Local Java Applications Cannot Be Monitored
Please see the VisualVM Troubleshooting Guide for more information and steps to fix the problem.
https://visualvm.github.io/troubleshooting.html#jpswin2
它说:
Description: An error dialog saying that local applications cannot be monitored is shown immediately after VisualVM startup. Locally running Java applications are displayed as <Unknown Application> (pid ###).
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.
我的用户名包含大写字母,但目录也是大写的(区分大小写) - 所以我没有看到任何问题。 由于没有进一步的日志,我也不知道接下来要去哪里。 有谁知道我如何让VisualVM再次工作?
答案 0 :(得分:3)
您能够找到id name add1 add2
1 x chen hyd
2 y bang mum
目录吗?如果是这样,请退出所有Java应用程序并删除该目录。一旦启动任何Java应用程序,它将再次重新创建。