性能问答>java进程中两个线程引起CPU升高>
4回复
3年前

java进程中两个线程引起CPU升高



“NioBlockingSelector.BlockPoller-1” #63 daemon prio=5 os_prio=0 tid=0x00007fbadb2fb000 nid=0x4b09 runnable [0x00007fba36aeb000]

java.lang.Thread.State: RUNNABLE

    at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)

    at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)

    at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)

    at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)

    - locked <0x000000008517bea8> (a sun.nio.ch.Util$3)

    - locked <0x000000008517be98> (a java.util.Collections$UnmodifiableSet)

    - locked <0x000000008517bd70> (a sun.nio.ch.EPollSelectorImpl)

    at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)

    at org.apache.tomcat.util.net.NioBlockingSelector$BlockPoller.run(NioBlockingSelector.java:298)

“http-nio-9001-exec-14” #26555 daemon prio=5 os_prio=0 tid=0x00007fba7c22b800 nid=0x7dc7 waiting on condition [0x00007fba2b8fb000]

java.lang.Thread.State: TIMED_WAITING (parking)

    at sun.misc.Unsafe.park(Native Method)

    - parking to wait for  <0x00000000ec871298> (a java.util.concurrent.CountDownLatch$Sync)

    at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

    at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037)

    at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328)

    at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)

    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.awaitLatch(NioEndpoint.java:1120)

    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.awaitReadLatch(NioEndpoint.java:1122)

    at org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java:184)

    at org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:235)

    at org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:216)

    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1253)

    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1196)

    at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:729)

    at org.apache.coyote.http11.Http11InputBuffer.access$300(Http11InputBuffer.java:40)

    at org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1084)

    at org.apache.coyote.http11.filters.IdentityInputFilter.end(IdentityInputFilter.java:190)

    at org.apache.coyote.http11.Http11InputBuffer.endRequest(Http11InputBuffer.java:609)

    at org.apache.coyote.http11.Http11Processor.endRequest(Http11Processor.java:1509)

    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:840)

    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)

    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)

    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

    - locked <0x00000000865baef0> (a org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

    at java.lang.Thread.run(Thread.java:748)
2063 阅读
请先登录,查看4条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步