本文介绍了如何在Windows Server 2008下的本地系统帐户下运行jvisualvm.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种可比的方法,如发布,用于在系统帐户下启动jvisualvm。但我得到了错误:

I've been looking for a comparable approach as posted here for Windows Server 2003 for starting jvisualvm under system account. But I got the error:

我发现jvisualvm正在使用配置文件:

I found that jvisualvm is using a configuration file:

此配置文件包含 default_userdir 指向 $ {HOME} / ... 的属性。系统帐户似乎与 $ {HOME} 有问题。更改此参数并将 $ {HOME} 替换为 C:/ Temp 使上述解决方案可用于Windows Server 2008 R2也是如此。

This configuration file contains a default_userdir property that points to ${HOME}/.... The system account seems to have issues with ${HOME}. Changing this parameter and replace ${HOME} with C:/Temp makes the above mentioned solution available for Windows Server 2008 R2 as well.

推荐答案

问题有答案,但我想总结一下步骤。

The question has the answer in it, but I wanted to summarize the steps.

请注意,对于我来说,jvisualvm在启动失败时没有打印或记录任何内容。我只需确保正确更新该conf文件。

Note that for me jvisualvm was not printing or logging anything when it failed to start up. I just had to make sure I updated that conf file correctly.

所以只需按照以下步骤操作:

So just follow the steps from:How do you run jvisualvm.exe under the local system account under Windows Server 2003?

然后使用此conf提示。

我现在能够看到进程,但我仍然无法捕获详细信息像线程转储一样的JVM信息。

and then use this conf tip.
I was now able to see the processes, but I still cannot capture detailed JVM info like thread dumps.

这篇关于如何在Windows Server 2008下的本地系统帐户下运行jvisualvm.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 06:08