单个Java虚拟机是否可以有不同的id

发布于 2024-11-06 02:36:57 字数 1141 浏览 0 评论 0原文

我们正在使用 HotSpot 1.5.22 运行多个 JBoss 实例,今天我发现一个 JVM 有两个不同的 vmid。这就是我所看到的:

$./jinfo -flags 13278
Attaching to process ID 13278, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_22-b03
[flags for jboss_node_b1]

$./jinfo -flags 20569
Attaching to process ID 20569, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_22-b03
[flags for jboss_node_b1]

$./jinfo -flags 13255
Attaching to process ID 13255, please wait...
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process

现在,如果我运行“ps -ef | grep jboss_node_b1”,则该节点只有一个进程以 PID 13278 运行。实际上,同一节点的两个实例不可能同时运行因为其中之一会崩溃。

这就是 jps 报告的内容:

$./jps
13278 -- process information unavailable
20569 -- process information unavailable
13255 -- process information unavailable
26716 Jps
[several other jboss jvms]

所以我有这个:

  • jboss_node_a1: pid 13255, vmid 13255 但我无法监视它
  • jboss_node_a2: pid 13278, vimd 13278 & 20569

怎么会这样?这可能是 1.5.22 监控工具中的一个错误吗?

问候

We're running several JBoss instances with HotSpot 1.5.22 and today I found a JVM which has two different vmid's. This is what I'm seeing:

$./jinfo -flags 13278
Attaching to process ID 13278, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_22-b03
[flags for jboss_node_b1]

$./jinfo -flags 20569
Attaching to process ID 20569, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_22-b03
[flags for jboss_node_b1]

$./jinfo -flags 13255
Attaching to process ID 13255, please wait...
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process

Now, if I run "ps -ef | grep jboss_node_b1" I have only one process for this node running with PID 13278. Actually, it would be impossible for two instances of the same node to be running since one of them would crash.

This is what jps is reporting:

$./jps
13278 -- process information unavailable
20569 -- process information unavailable
13255 -- process information unavailable
26716 Jps
[several other jboss jvms]

So I have this:

  • jboss_node_a1: pid 13255, vmid 13255 but I can't monitor it
  • jboss_node_a2: pid 13278, vimd 13278 & 20569

How could this be? Could this be a bug in the 1.5.22 monitoring tools?

Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文