Windows Server 2008下如何在本地系统帐户下运行jvisualvm.exe?
我一直在寻找一种类似的方法,如发布的 此处适用于 Windows Server 2003,用于在系统帐户下启动 jvisualvm。但我得到了错误:
...\jdk1.6.0_24\bin\jvisualvm.exe 于 ... 退出,错误代码 -1073741819。
我发现 jvisualvm 正在使用配置文件:
<代码>...\jdk1.6.0_24\lib\visualvm\etc\visualvm.conf
此配置文件包含一个指向 ${HOME}/ 的
。系统帐户似乎存在 default_userdir
属性...${HOME}
问题。更改此参数并将 ${HOME}
替换为 C:/Temp
使得上述解决方案也适用于 Windows Server 2008 R2。
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:
...\jdk1.6.0_24\bin\jvisualvm.exe exited on ... with error code -1073741819.
I found that jvisualvm is using a configuration file:
...\jdk1.6.0_24\lib\visualvm\etc\visualvm.conf
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题已经有了答案,但我想总结一下步骤。
请注意,对我来说,jvisualvm 在启动失败时不会打印或记录任何内容。我只需要确保我正确更新了该conf 文件。
因此,只需按照以下步骤操作即可:
如何运行jvisualvm.exe 在 Windows Server 2003 下的本地系统帐户下?
,然后使用此conf提示。
我现在能够看到进程,但仍然无法捕获详细的 JVM 信息,例如线程转储。
The question has the answer in it, but I wanted to summarize the steps.
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?
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.