Java Runnable线程停留在本机方法中,长时间占用高CPU

时间:2015-03-31 08:38:13

标签: java cpu native-code

嗨我有一个案例,其中一堆相同的线程处于RUNNABLE状态,执行Native方法并长时间停留(超过一小时)

"http-bio-8080-exec-806" daemon prio=10 tid=0x00007fd4b0174800 nid=0x7e09 runnable [0x00007fd84a141000]
   java.lang.Thread.State: RUNNABLE
    at java.lang.Class.getSuperclass(Native Method)

"http-bio-8080-exec-795" daemon prio=10 tid=0x00007fce6c007800 nid=0x7e01 runnable [0x00007fd3f037a000]
   java.lang.Thread.State: RUNNABLE
    at java.lang.Class.getSuperclass(Native Method)

"http-bio-8080-exec-802" daemon prio=10 tid=0x00007fd67c11a000 nid=0x7dff runnable [0x00007fd4723b1000]
   java.lang.Thread.State: RUNNABLE
    at java.lang.Class.getSuperclass(Native Method)

"http-bio-8080-exec-800" daemon prio=10 tid=0x00007fd67c2a8000 nid=0x7dfe runnable [0x00007fd7f2dfe000]
   java.lang.Thread.State: RUNNABLE
    at java.lang.Class.getSuperclass(Native Method)

"http-bio-8080-exec-783" daemon prio=10 tid=0x00007fcd68001800 nid=0x7699 runnable [0x00007fd2b05fd000]
   java.lang.Thread.State: RUNNABLE
    at java.lang.Class.getSuperclass(Native Method)

"http-bio-8080-exec-612" daemon prio=10 tid=0x00007fd53001b000 nid=0x55a9 runnable [0x00007fd5013cf000]
   java.lang.Thread.State: RUNNABLE 
    at java.lang.Class.getSuperclass(Native Method)
    at org.apache.commons.lang.builder.EqualsBuilder.reflectionEquals(EqualsBuilder.java:286)
    at org.apache.commons.lang.builder.EqualsBuilder.reflectionEquals(EqualsBuilder.java:124)
    at com.tngtech.jira.plugins.gadget.data.FakeBarChartEntry.equals(FakeBarChartEntry.java:44)
    at java.util.ArrayList.indexOf(Unknown Source)
    at java.util.ArrayList.contains(Unknown Source)
    at com.tngtech.jira.plugins.gadget.data.BarChartDataSorter.currentIsPriorToBuffer(BarChartDataSorter.java:121)
    at com.tngtech.jira.plugins.gadget.data.BarChartDataSorter.sortEntriesAndFillGaps(BarChartDataSorter.java:98)
    at com.tngtech.jira.plugins.gadget.data.BarChartDataSorter.sortAndEnrichChartData(BarChartDataSorter.java:27)
    at com.tngtech.jira.plugins.gadget.data.BarChartDataCollector.collectChartData(BarChartDataCollector.java:54)
    at com.tngtech.jira.plugins.gadget.BarChartGadget.createRestClass(BarChartGadget.java:111)
    at com.tngtech.jira.plugins.gadget.BarChartGadget.getVersionsForProject(BarChartGadget.java:85)
    at com.tngtech.jira.plugins.gadget.BarChartGadget.getVersionsForProject(BarChartGadget.java:67)

我不知道这里有什么事吗?一小时后线程终止了!

0 个答案:

没有答案