为什么java.exe由于“;org.xnio.nio”;线程?
我们正在使用JDK1.8版本运行WildFly 12。由于java.exe的高CPU使用率(90%以上),我们在web应用程序中面临门户关闭/速度缓慢的问题。然后,我们使用JStack进行了线程转储,大多数高CPU线程都指向“org.xnio.nio” 门户正在HTTPS中运行 中央处理器:8核 总内存:24 GB 分配的JVM内存:从1 GB(最小)到5 GB(最大) 占用线程转储时的JVM内存:4 GB DB在单独的机器中 以下是线程转储结果(高CPU线程):为什么java.exe由于“;org.xnio.nio”;线程?,java,multithreading,jakarta-ee,web-applications,wildfly-12,Java,Multithreading,Jakarta Ee,Web Applications,Wildfly 12,我们正在使用JDK1.8版本运行WildFly 12。由于java.exe的高CPU使用率(90%以上),我们在web应用程序中面临门户关闭/速度缓慢的问题。然后,我们使用JStack进行了线程转储,大多数高CPU线程都指向“org.xnio.nio” 门户正在HTTPS中运行 中央处理器:8核 总内存:24 GB 分配的JVM内存:从1 GB(最小)到5 GB(最大) 占用线程转储时的JVM内存:4 GB DB在单独的机器中 以下是线程转储结果(高CPU线程): “默认I/O-1”#95优先级
“默认I/O-1”#95优先级=5操作系统优先级=0 tid=0x00000000260bf800 nid=0x1988可运行[0x000000002e49f000]
java.lang.Thread.State:可运行
位于io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:147)
位于io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
位于io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
位于org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
位于org.xnio.conductions.ReadReadyHandler$ChannelListenerHandler.readReadReady(ReadReadyHandler.java:66)
在io.undertow.conductors.ReadTimeOutStreamSourceConductor$2.ReadReadReadReady(ReadTimeOutStreamSourceConductor.java:89)
在io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readreadready(SslConduit.java:1145)
位于org.xnio.nio.niosocketconductor.handleReady(niosocketconductor.java:89)
位于org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
“默认I/O-13”#108优先级=5 os_优先级=0 tid=0x0000000022186000 nid=0x2310可运行[0x000000002F000]
java.lang.Thread.State:可运行
位于java.lang.Object.notifyAll(本机方法)
位于sun.nio.ch.WindowsSelectorImpl$startock.startThreads(WindowsSelectorImpl.java:189)
-锁定(sun.nio.ch.WindowsSelectorImpl$startock)
位于sun.nio.ch.WindowsSelectorImpl$startock.access$300(WindowsSelectorImpl.java:181)
在sun.nio.ch.WindowsSelectorImpl.doSelect上(WindowsSelectorImpl.java:153)
在sun.nio.ch.SelectorImpl.lock和doselect上(SelectorImpl.java:86)
-锁定(sun.nio.ch.Util$3)
-锁定(java.util.Collections$UnmodifiableSet)
-锁定(sun.nio.ch.WindowsSelectorImpl)
在sun.nio.ch.SelectorImpl.select上(SelectorImpl.java:97)
位于org.xnio.nio.WorkerThread.run(WorkerThread.java:551)
“默认I/O-13”#108优先级=5 os_优先级=0 tid=0x0000000022186000 nid=0x2310可运行[0x000000002f09e000]
java.lang.Thread.State:可运行
位于java.util.AbstractCollection.toArray(AbstractCollection.java:183)
位于sun.nio.ch.Util$3.toArray(Util.java:322)
位于org.xnio.nio.WorkerThread.run(WorkerThread.java:570)
-锁定(sun.nio.ch.Util$3)
-锁定(sun.nio.ch.WindowsSelectorImpl)
“默认I/O-5”#100优先级=5 os_优先级=0 tid=0x00000000260C00000 nid=0x858可运行[0x000000002e89e000]
java.lang.Thread.State:可运行
位于org.xnio.nio.WorkerThread.run(WorkerThread.java:480)
问题发生一次(2-5)天
提前感谢有人能帮你解决问题吗?如果有,怎么解决?有人能帮你解决问题吗?如果有,怎么解决?
"default I/O-1" #95 prio=5 os_prio=0 tid=0x00000000260bf800 nid=0x1988 runnable [0x000000002e49f000]
java.lang.Thread.State: RUNNABLE
at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:147)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at io.undertow.conduits.ReadTimeoutStreamSourceConduit$2.readReady(ReadTimeoutStreamSourceConduit.java:89)
at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1145)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
"default I/O-13" #108 prio=5 os_prio=0 tid=0x0000000022186000 nid=0x2310 runnable [0x000000002f09f000]
java.lang.Thread.State: RUNNABLE
at java.lang.Object.notifyAll(Native Method)
at sun.nio.ch.WindowsSelectorImpl$StartLock.startThreads(WindowsSelectorImpl.java:189)
- locked <0x00000006618ae440> (a sun.nio.ch.WindowsSelectorImpl$StartLock)
at sun.nio.ch.WindowsSelectorImpl$StartLock.access$300(WindowsSelectorImpl.java:181)
at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:153)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
- locked <0x000000066508ea18> (a sun.nio.ch.Util$3)
- locked <0x000000066508ea08> (a java.util.Collections$UnmodifiableSet)
- locked <0x0000000665082b98> (a sun.nio.ch.WindowsSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:551)
"default I/O-13" #108 prio=5 os_prio=0 tid=0x0000000022186000 nid=0x2310 runnable [0x000000002f09e000]
java.lang.Thread.State: RUNNABLE
at java.util.AbstractCollection.toArray(AbstractCollection.java:183)
at sun.nio.ch.Util$3.toArray(Util.java:322)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:570)
- locked <0x000000066508ea18> (a sun.nio.ch.Util$3)
- locked <0x0000000665082b98> (a sun.nio.ch.WindowsSelectorImpl)
"default I/O-5" #100 prio=5 os_prio=0 tid=0x00000000260c0000 nid=0x858 runnable [0x000000002e89e000]
java.lang.Thread.State: RUNNABLE
at org.xnio.nio.WorkerThread.run(WorkerThread.java:480)