“vm线程”的作用是什么?在JDK 1.6中 [英] what is the role of "vm thread" in JDK 1.6

查看:254
本文介绍了“vm线程”的作用是什么?在JDK 1.6中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在客户的系统中看到了很多此线程的活动,因此想知道可能发生的事情。

We are seeing lot of activity of this thread in our customer's system and hence would like to know what might be happening.

任何链接,信息,教程?

any links, info, tutorials ?

PS:在具有JDK 1.6.0_23的Solaris 10上发生这种情况。

P.S : this is happening on Solaris 10 with JDK 1.6.0_23.

推荐答案

此主题将为您提供一些步骤。如果可能,我会提供更多。
http://mail.openjdk.java .net / pipermail / hotspot-dev / 2009-February / 001249.html

this thread will give you some step to proceed. If possible i will provide more. http://mail.openjdk.java.net/pipermail/hotspot-dev/2009-February/001249.html

我可以分享一些关于VM线程的更多细节

This some more details i can share about VM thread

如果当前线程是VMThread,那么您需要在
THREAD部分中查找VM_Operation行。 VM线程是HotSpot VM中的特殊线程。它在
VM中执行特殊任务,例如垃圾收集。如果VM_Operation建议该操作是垃圾
集合,那么您可能遇到堆损坏等问题。崩溃
也可能是垃圾收集器问题,但它可能同样是其他东西(例如编译器或
运行时错误),它使堆中的对象引用处于不一致或不正确的状态。在这种情况下,
最好尽可能多地收集有关环境的信息,并尝试可能的
解决方法。如果问题与GC相关,那么您可以通过
更改GC配置来暂时解决问题。这将在下一节中讨论。

If the "Current thread" is the VMThread then you need to look for the "VM_Operation" line in the THREAD section. The VM thread is a special thread in the HotSpot VM. It performs special tasks in the VM such as garbage collection. If the VM_Operation suggests that the operation is a garbage collection then it is possible that you have encountered as issue such as heap corruption. The crash might also be a garbage collector issue, but it could equally be something else (such as a compiler or runtime bug) that leaves object references in the heap in an inconsistent or incorrect state. In this case it is best to collect as much information as possible about the environment and try out possible workarounds. If the issue is GC related then you may be able to temporarily workaround the issue by changing the GC configuration. This is discussed in the following section.

还查看此链接以获取更多信息 http://www.oracle.com/technetwork/java/jdk50-ts-guide-149808.pdf

also check this link for more information http://www.oracle.com/technetwork/java/jdk50-ts-guide-149808.pdf

这篇关于“vm线程”的作用是什么?在JDK 1.6中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆