jps 进程信息不可用 - jconsole 和 jvisualvm 不工作
Windows 更新后,我的 jps、jconsole 和 jvisualvm 不再工作。
Jps 为我提供了进程 ID,但它告诉我进程信息不可用
而且我无法像以前那样使用 jvisualvm 连接到这些进程。
我正在运行 1.6.0_22 jre。
我过去已经遇到过这个问题,尝试 这个技巧,它奏效了。但这一次,运气不好,也无济于事。
编辑: 我找到了一个解决方案:在我的临时文件夹中,我确实销毁了 hsperfdata_
文件夹。显然我的用户名大小写有问题。该文件夹名为 hsperfdata_myname。在通过调用 jps 销毁并重新创建后,它被称为 hasperfdata_MYNAME。
很奇怪。
After a windows update, my jps, jconsole et jvisualvm are not working anymore.
Jps gives me the process ids, but it tells me process information unavailable
And I'm unable to connect to those processes with jvisualvm as I used to.
I'm running the 1.6.0_22 jre.
I already had the problem in the past, tries this trick, and it worked. But this time, bad luck, it does not help.
Edit :
I found a solution : in my temp folder, I did destroy the hsperfdata_<username>
folder. Apparently there was an issue with the case of my username. The folder was called hsperfdata_myname. After having been destroyed and re-created by a call to jps, it was called hasperfdata_MYNAME.
Very strange.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在我的临时文件夹中,我确实销毁了 hsperfdata_ 文件夹。显然我的用户名大小写有问题。该文件夹名为 hsperfdata_myname。在通过调用 jps 销毁并重新创建后,它被称为 hasperfdata_MYNAME。
很奇怪。
In my temp folder, I did destroy the hsperfdata_ folder. Apparently there was an issue with the case of my username. The folder was called hsperfdata_myname. After having been destroyed and re-created by a call to jps, it was called hasperfdata_MYNAME.
Very strange.
在 UNIX 上,确保您以启动它的用户身份运行。
On unix, make sure you are running as the user that started it.
我们这里也遇到同样的问题。
tmp 文件夹技巧对我们来说也不起作用。
到目前为止,我们已经找到了几种使事情再次正常工作的方法:
we're having the same problem here.
The tmp folder trick didn't work for us, as well.
So far, we've found a few ways to make things work again:
我编写了一个脚本来应用解决方法,我从一些监视脚本中调用该解决方法,直到问题得到解决。
I wrote a script to apply the work-around, which I call from some of my monitoring scripts, until this is fixed.