单个Java虚拟机是否可以有不同的id
我们正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论