java - 哪个会导致cpu 99%ni?

标签 java linux multithreading

<分区>

昨天,我使用 top 查看我的 Quartz 作业停止运行的原因。

And top show all cpus are with 99%ni?

Which will cause cpu to change nice value so frequently?

Can a dead loop in java lead to this?

环境:

  1. Linux内核2.6.18
  2. JDK:Sun Java 1.6.0_23
  3. Jboss AS 4.2.2.GA

top result

最佳答案

您可以使用可视化 VM 连接到 JVM 并分析 JVM。它在启动时可能需要特殊参数,但如果您这样做,您可以连接到它并让探查器在下次发生这种情况时告诉您哪里出了问题。

关于java - 哪个会导致cpu 99%ni?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8570957/

相关文章:

java - java中带索引的排序算法

java - 在 GUI 界面中接收用户输入(通过扫描仪)

java - 如何仅使 JTextArea (+JScrollPane) 的下一行可编辑

linux - Windows Linux Bash 运行时错误的变量名称/bin/sh -c "$(curl -fsS https://install.airshipcms.io)"

java - 我应该在 `Thread.currentThread().interrupt()` 之前做 `throw new InterruptedIOException()` 吗?

java - 带过滤功能的 Spinx 搜索查询

c - 没有任何 cpp 选项的系统调用 stat() 转换为 stat64()

linux - 如何仅使用 SED 获得第二行

.net - 如何中断无效的跨线程错误

java - 来自单独线程类的 Android toast 消息